Enum pear::Expected[][src]

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

Variants

Trait Implementations

impl<I: Debug + Input> Debug for Expected<I> where
    I::Token: Debug,
    I::InSlice: Debug,
    I::Slice: Debug
[src]

Formats the value using the given formatter. Read more

impl<I: Clone + Input> Clone for Expected<I> where
    I::Token: Clone,
    I::InSlice: Clone,
    I::Slice: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: PartialEq + Input> PartialEq for Expected<I> where
    I::Token: PartialEq,
    I::InSlice: PartialEq,
    I::Slice: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<I: Input> Display for Expected<I>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<I> Send for Expected<I> where
    <I as Input>::InSlice: Send,
    <I as Input>::Slice: Send,
    <I as Input>::Token: Send

impl<I> Sync for Expected<I> where
    <I as Input>::InSlice: Sync,
    <I as Input>::Slice: Sync,
    <I as Input>::Token: Sync