[][src]Enum pear::Expected

pub enum Expected<T, I, S> {
    Token(Option<T>, Option<T>),
    Slice(Option<I>, Option<S>),
    Custom(Cow<'static, str>),
    EOF(Option<T>),
}

Variants

Token(Option<T>, Option<T>)
Slice(Option<I>, Option<S>)
Custom(Cow<'static, str>)
EOF(Option<T>)

Implementations

impl<T, I, S> Expected<T, I, S>[src]

pub fn map<FT, FI, FS, OT, OI, OS>(
    self,
    f_t: FT,
    f_i: FI,
    f_s: FS
) -> Expected<OT, OI, OS> where
    FT: Copy + Fn(T) -> OT,
    FI: Fn(I) -> OI,
    FS: Fn(S) -> OS, 
[src]

Trait Implementations

impl<T: Clone, I: Clone, S: Clone> Clone for Expected<T, I, S>[src]

impl<T: Debug, I: Debug, S: Debug> Debug for Expected<T, I, S>[src]

impl<T: Debug, I: Debug, S: Debug> Display for Expected<T, I, S>[src]

impl<T: Display + Debug, I: Display + Debug, S: Display + Debug> Display for Expected<T, I, S>[src]

impl<T: PartialEq, I: PartialEq, S: PartialEq> PartialEq<Expected<T, I, S>> for Expected<T, I, S>[src]

impl<T, I, S> StructuralPartialEq for Expected<T, I, S>[src]

Auto Trait Implementations

impl<T, I, S> RefUnwindSafe for Expected<T, I, S> where
    I: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I, S> Send for Expected<T, I, S> where
    I: Send,
    S: Send,
    T: Send

impl<T, I, S> Sync for Expected<T, I, S> where
    I: Sync,
    S: Sync,
    T: Sync

impl<T, I, S> Unpin for Expected<T, I, S> where
    I: Unpin,
    S: Unpin,
    T: Unpin

impl<T, I, S> UnwindSafe for Expected<T, I, S> where
    I: UnwindSafe,
    S: UnwindSafe,
    T: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.