Type Alias pear::input::ParseError

source ·
pub type ParseError<I> = ParseError<<I as Input>::Context, Expected<I>>;

Aliased Type§

struct ParseError<I> {
    pub error: Expected<<I as Input>::Token, <I as Input>::Slice>,
    pub info: ErrorInfo<<I as Input>::Context>,
    pub stack: Vec<ErrorInfo<<I as Input>::Context>, Global>,
}

Fields§

§error: Expected<<I as Input>::Token, <I as Input>::Slice>§info: ErrorInfo<<I as Input>::Context>§stack: Vec<ErrorInfo<<I as Input>::Context>, Global>

Implementations§

source§

impl<C, E> ParseError<C, E>

source

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

source

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

source

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

Trait Implementations§

source§

impl<C: Clone, E: Clone> Clone for ParseError<C, E>

source§

fn clone(&self) -> ParseError<C, E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<C: Debug, E: Debug> Debug for ParseError<C, E>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<C: Show, E: Display> Display for ParseError<C, E>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more