Struct enum_vec::EnumVec[][src]

pub struct EnumVec<T: EnumLike> { /* fields omitted */ }

A vector which efficiently stores enum variants.

Methods

impl<T: EnumLike> EnumVec<T>
[src]

Insert and remove need a better implementation

Get the raw discriminant without bounds checking

Set the raw discriminant without bounds checking. It is assumed that the discriminant has only Self::BITS_PER_ELEM bits set.

Important traits for EnumVecIter<'a, T>

Copies self into a plain Vec

Trait Implementations

impl<T: Clone + EnumLike> Clone for EnumVec<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: EnumLike + Debug> Debug for EnumVec<T>
[src]

Formats the value using the given formatter. Read more

impl<T: EnumLike> Default for EnumVec<T>
[src]

Returns the "default value" for a type. Read more

impl<T: EnumLike> Extend<T> for EnumVec<T>
[src]

Extends a collection with the contents of an iterator. Read more

impl<T: EnumLike> FromIterator<T> for EnumVec<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T: EnumLike> IntoIterator for &'a EnumVec<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<T: EnumLike> IntoIterator for EnumVec<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<T> Send for EnumVec<T> where
    T: Send

impl<T> Sync for EnumVec<T> where
    T: Sync