-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
breaking changeSomething should increment the major version numberSomething should increment the major version numberderiveSomething related to auto-deriveSomething related to auto-deriveenhancementNew feature or requestNew feature or request
Milestone
Description
Two methods (maybe with default implementations provided) to map index from/to enumerated value.
println!("{}", <i8 as Enumerable>::enumerable_index(-127).unwrap()); // "1", as -127 is the 1st (0-based) possible value of i8
println!("{}", <i8 as Enumerable>::enumerable_from_index(4).unwrap()); // "-124"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changeSomething should increment the major version numberSomething should increment the major version numberderiveSomething related to auto-deriveSomething related to auto-deriveenhancementNew feature or requestNew feature or request