[][src]Struct pear::ParseErr

pub struct ParseErr<I: Input> {
    pub parser: &'static str,
    pub expected: Expected<I::Token, I::InSlice, I::Slice>,
    pub context: Option<I::Context>,
}

Fields

parser: &'static strexpected: Expected<I::Token, I::InSlice, I::Slice>context: Option<I::Context>

Implementations

impl<I: Input> ParseErr<I>[src]

pub fn new<T>(parser: &'static str, message: T) -> ParseErr<I> where
    T: Into<Cow<'static, str>>, 
[src]

pub fn from_context<T>(
    input: &mut I,
    parser: &'static str,
    message: T
) -> ParseErr<I> where
    T: Into<Cow<'static, str>>, 
[src]

Trait Implementations

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

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

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

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

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

impl<I: Input> StructuralPartialEq for ParseErr<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for ParseErr<I> where
    <I as Input>::Context: RefUnwindSafe,
    <I as Input>::InSlice: RefUnwindSafe,
    <I as Input>::Slice: RefUnwindSafe,
    <I as Input>::Token: RefUnwindSafe

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

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

impl<I> Unpin for ParseErr<I> where
    <I as Input>::Context: Unpin,
    <I as Input>::InSlice: Unpin,
    <I as Input>::Slice: Unpin,
    <I as Input>::Token: Unpin

impl<I> UnwindSafe for ParseErr<I> where
    <I as Input>::Context: UnwindSafe,
    <I as Input>::InSlice: UnwindSafe,
    <I as Input>::Slice: UnwindSafe,
    <I as Input>::Token: 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.