Expand description
A vector which efficiently stores enum variants.
Re-exports§
pub use vec_u32::EnumVec;
Modules§
- vec_u8
- Alternative implementation of
EnumVecwithVec<u8>storage. - vec_u16
- Alternative implementation of
EnumVecwithVec<u16>storage. - vec_u32
- Default
EnumVecwithVec<u32>storage. - vec_u64
- Alternative implementation of
EnumVecwithVec<u64>storage. - vec_
u128 - Alternative implementation of
EnumVecwithVec<u128>storage.
Macros§
Structs§
- Packed
U8 - Not sure if this is needed
Packs an
EnumLikevalue into au8, if possible - Packed
U16 - Not sure if this is needed
Packs an
EnumLikevalue into au16, if possible - Values
- Not sure if this is needed
Iterator over the values (variants) of
T
Traits§
- Enum
Like - Not sure if this is needed
The
EnumLiketrait specifies how a type will be stored inside theEnumVec. - Enum
Values - Not sure if this is needed
Helper trait to iterate over all the possible values of an enum.
Note: you don’t need to implement this trait, it is provided by
EnumLike.