Struct enumoid::EnumOptionMap[][src]

pub struct EnumOptionMap<T: EnumFlagsHelper + EnumArrayHelper<V>, V> { /* fields omitted */ }

A partial map from enumoid T to values V.

Implementations

impl<T: EnumFlagsHelper + EnumArrayHelper<V>, V> EnumOptionMap<T, V>[src]

pub fn new() -> Self[src]

pub fn get(&self, key: T) -> Option<&V>[src]

pub fn set(&mut self, key: T, value: Option<V>)[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_full(&self) -> bool[src]

pub fn is_vec(&self) -> Option<usize>[src]

Trait Implementations

impl<T: EnumFlagsHelper + EnumArrayHelper<V>, V> Default for EnumOptionMap<T, V>[src]

impl<'a, T: EnumFlagsHelper + EnumArrayHelper<V>, V> TryFrom<EnumOptionMap<T, V>> for EnumMap<T, V>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a, T: EnumFlagsHelper + EnumArrayHelper<V>, V> TryFrom<EnumOptionMap<T, V>> for EnumVec<T, V>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T, V> RefUnwindSafe for EnumOptionMap<T, V> where
    <T as EnumFlagsHelper>::FlagsArray: RefUnwindSafe,
    <T as EnumArrayHelper<V>>::PartialArray: RefUnwindSafe

impl<T, V> Send for EnumOptionMap<T, V> where
    <T as EnumFlagsHelper>::FlagsArray: Send,
    <T as EnumArrayHelper<V>>::PartialArray: Send

impl<T, V> Sync for EnumOptionMap<T, V> where
    <T as EnumFlagsHelper>::FlagsArray: Sync,
    <T as EnumArrayHelper<V>>::PartialArray: Sync

impl<T, V> Unpin for EnumOptionMap<T, V> where
    <T as EnumFlagsHelper>::FlagsArray: Unpin,
    <T as EnumArrayHelper<V>>::PartialArray: Unpin

impl<T, V> UnwindSafe for EnumOptionMap<T, V> where
    <T as EnumFlagsHelper>::FlagsArray: UnwindSafe,
    <T as EnumArrayHelper<V>>::PartialArray: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.