[][src]Struct pear::error::ParseError

pub struct ParseError<C, E> {
    pub error: E,
    pub info: ErrorInfo<C>,
    pub stack: Vec<ErrorInfo<C>>,
}

Fields

error: Einfo: ErrorInfo<C>stack: Vec<ErrorInfo<C>>

Implementations

impl<C, E> ParseError<C, E>[src]

pub fn new(parser: ParserInfo, error: E, context: C) -> ParseError<C, E>[src]

pub fn push_info(&mut self, parser: ParserInfo, context: C)[src]

pub fn into<E2: From<E>>(self) -> ParseError<C, E2>[src]

Trait Implementations

impl<C: Clone, E: Clone> Clone for ParseError<C, E>[src]

impl<C: Debug, E: Debug> Debug for ParseError<C, E>[src]

impl<C: Show, E: Display> Display for ParseError<C, E>[src]

Auto Trait Implementations

impl<C, E> RefUnwindSafe for ParseError<C, E> where
    C: RefUnwindSafe,
    E: RefUnwindSafe

impl<C, E> Send for ParseError<C, E> where
    C: Send,
    E: Send

impl<C, E> Sync for ParseError<C, E> where
    C: Sync,
    E: Sync

impl<C, E> Unpin for ParseError<C, E> where
    C: Unpin,
    E: Unpin

impl<C, E> UnwindSafe for ParseError<C, E> where
    C: UnwindSafe,
    E: 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.