[][src]Struct cmdmat::MappingEntry

pub struct MappingEntry<'a, A, D, C> {
    pub literal: &'a str,
    pub decider: Option<&'a Decider<A, D>>,
    pub finalizer: Option<Finalizer<A, C>>,
    pub submap: &'a HashMap<&'a str, Mapping<'a, A, D, C>>,
}

An entry in the mapping table

Fields

literal: &'a str

The literal this mapping entry is matched against

decider: Option<&'a Decider<A, D>>

The decider function for miscellaneous arguments

finalizer: Option<Finalizer<A, C>>

The finalizer function for this mapping

submap: &'a HashMap<&'a str, Mapping<'a, A, D, C>>

Submap containing all other literal-mapping pairs

Auto Trait Implementations

impl<'a, A, D, C> Send for MappingEntry<'a, A, D, C>

impl<'a, A, D, C> Unpin for MappingEntry<'a, A, D, C>

impl<'a, A, D, C> Sync for MappingEntry<'a, A, D, C>

impl<'a, A, D, C> UnwindSafe for MappingEntry<'a, A, D, C>

impl<'a, A, D, C> RefUnwindSafe for MappingEntry<'a, A, D, C>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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