[][src]Enum cmdmat::Decision

pub enum Decision<D> {
    Accept(usize),
    Deny(D),
}

A decision contains information about token consumption by the decider

If the decider has accepted the tokens, it will return an Accept(usize), if it failed to parse interpret the tokens, it will return a deny value.

Variants

Accept(usize)

Accept any number of inputs

Deny(D)

Deny the input

Trait Implementations

impl<D: PartialEq> PartialEq<Decision<D>> for Decision<D>[src]

impl<D: Debug> Debug for Decision<D>[src]

impl<D> Try for Decision<D>[src]

type Ok = usize

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as successful.

type Error = D

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as failed.

Auto Trait Implementations

impl<D> Send for Decision<D> where
    D: Send

impl<D> Unpin for Decision<D> where
    D: Unpin

impl<D> Sync for Decision<D> where
    D: Sync

impl<D> UnwindSafe for Decision<D> where
    D: UnwindSafe

impl<D> RefUnwindSafe for Decision<D> where
    D: RefUnwindSafe

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]