Skip to content

Consider changing enums to struct(u16) #4696

Description

@jcjones

J.C.'s thought: we use enum all over, but I'm tempted to make this

#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct CollectionJobExtensionType(u16);

so the boilerplate becomes more compiler-generated.

Originally posted by @jcjones in #4693 (comment)

Give an example of how it goes. Consider documenting the preference either way in the DEVELOPMENT.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions