Skip to main content

ParseError

Trait ParseError 

Source
pub trait ParseError {
    // Required methods
    fn is_fatal(&self) -> bool;
    fn pos(&self) -> Option<AstPos>;
    fn to_app_error(&self, parser: &Parser) -> AppError;
}
Expand description

Parse error

Required Methods§

Source

fn is_fatal(&self) -> bool

Returns whether this error is fatal

Source

fn pos(&self) -> Option<AstPos>

Returns the position at which this error occurred.

Source

fn to_app_error(&self, parser: &Parser) -> AppError

Converts this error type to an AppError

Implementations on Foreign Types§

Source§

impl ParseError for !

Source§

fn is_fatal(&self) -> bool

Source§

fn pos(&self) -> Option<AstPos>

Source§

fn to_app_error(&self, _parser: &Parser) -> AppError

Source§

impl ParseError for ()

Source§

fn is_fatal(&self) -> bool

Source§

fn pos(&self) -> Option<AstPos>

Source§

fn to_app_error(&self, _parser: &Parser) -> AppError

Source§

impl<E: ParseError> ParseError for Box<E>

Source§

fn is_fatal(&self) -> bool

Source§

fn pos(&self) -> Option<AstPos>

Source§

fn to_app_error(&self, parser: &Parser) -> AppError

Implementors§

Source§

impl ParseError for NeverError

Source§

impl<T0: Parse> ParseError for Tuple1Error<T0>

Source§

impl<T0: Parse, T1: Parse> ParseError for Tuple2Error<T0, T1>

Source§

impl<T0: Parse, T1: Parse, T2: Parse> ParseError for Tuple3Error<T0, T1, T2>

Source§

impl<T0: Parse, T1: Parse, T2: Parse, T3: Parse> ParseError for Tuple4Error<T0, T1, T2, T3>

Source§

impl<T: Parse> ParseError for ParserError<T>