[][src]Crate enum_vec

A vector which efficiently stores enum variants.

Re-exports

pub use vec_u32::EnumVec;

Modules

smallvec_u32

SmallEnumVec

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

Packs an EnumLike value into a u8, if possible

PackedU16

Packs an EnumLike value into a u16, if possible

Values

Iterator over the values (variants) of T

Traits

EnumLike

The EnumLike trait specifies how a type will be stored inside the EnumVec.

EnumValues

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.