Crate enum_vec

Source
Expand description

A vector which efficiently stores enum variants.

Re-exports§

Modules§

  • Alternative implementation of EnumVec with Vec<u8> storage.
  • Alternative implementation of EnumVec with Vec<u16> storage.
  • Default EnumVec with Vec<u32> storage.
  • Alternative implementation of EnumVec with Vec<u64> storage.
  • Alternative implementation of EnumVec with Vec<u128> storage.

Macros§

Structs§

  • Not sure if this is needed Packs an EnumLike value into a u8, if possible
  • Not sure if this is needed Packs an EnumLike value into a u16, 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 the EnumVec.
  • 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.