Crate enum_vec

Source
Expand description

A vector which efficiently stores enum variants.

Re-exports§

pub use vec_u32::EnumVec;

Modules§

vec_u8
Alternative implementation of EnumVec with Vec<u8> storage.
vec_u16
Alternative implementation of EnumVec with Vec<u16> storage.
vec_u32
Default EnumVec with Vec<u32> storage.
vec_u64
Alternative implementation of EnumVec with Vec<u64> storage.
vec_u128
Alternative implementation of EnumVec with Vec<u128> storage.

Macros§

enum_vec

Structs§

PackedU8
Not sure if this is needed Packs an EnumLike value into a u8, if possible
PackedU16
Not sure if this is needed Packs an EnumLike value into a u16, if possible
Values
Not sure if this is needed Iterator over the values (variants) of T

Traits§

EnumLike
Not sure if this is needed The EnumLike trait specifies how a type will be stored inside the EnumVec.
EnumValues
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.