Trait LocatedParsingError

Source
pub trait LocatedParsingError {
    type Span;
    type Error;

    // Required methods
    fn span(&self) -> &Self::Span;
    fn error(&self) -> &Self::Error;
}
Expand description

Located Parsing error is the error raised by parsing a given buffer and a reference to the location where it occurred. The offset of the buffer in the Span should refer (as much as possible) to the first byte where the error started

Required Associated Types§

Required Methods§

Source

fn span(&self) -> &Self::Span

Source

fn error(&self) -> &Self::Error

Implementors§