Crate efficient_enum [−] [src]
Space-efficient enum values.
For the moment only option types are implemented, as true enums would require something
like a const fn
version of size_of
.
Structs
EfficientOption |
An option type similar to |
EfficientOptionTuple |
An option type similar to |
TagMSB |
A struct represnting the method of tagging using only the |
Two |
A struct for representing enums with 2 options |
Enums
TwoOptions |
An enum with 2 options |
Traits
TagOptions |
A trait for getting the number of options associated with a |
TaggableValue |
A trait representing a value which can have some space dedicated to use for tagging a union |