Expand description
A vector which efficiently stores enum variants.
Re-exports§
pub use vec_u32::EnumVec;
Modules§
- Alternative implementation of
EnumVec
withVec<u8>
storage. - Alternative implementation of
EnumVec
withVec<u16>
storage. - Default
EnumVec
withVec<u32>
storage. - Alternative implementation of
EnumVec
withVec<u64>
storage. - Alternative implementation of
EnumVec
withVec<u128>
storage.
Macros§
Structs§
- Not sure if this is needed Packs an
EnumLike
value into au8
, if possible - Not sure if this is needed Packs an
EnumLike
value into au16
, if possible - Not sure if this is needed Iterator over the values (variants) of
T
Traits§
- Not sure if this is needed The
EnumLike
trait specifies how a type will be stored inside theEnumVec
. - 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
.