Trait ParseError

Source
pub trait ParseError: Sized + Clone {
    type L;

    // Required methods
    fn new(span: Span) -> Self;
    fn add_label_explicit(&mut self, label: Self::L);
    fn add_label_implicit(&mut self, label: Self::L);
    fn merge(self, other: Self) -> Self;
    fn set_end(&mut self, end: Pos);
    fn report(&self, enable_debug: bool) -> Report<'static, Span>;
}

Required Associated Types§

Source

type L

Required Methods§

Source

fn new(span: Span) -> Self

Source

fn add_label_explicit(&mut self, label: Self::L)

Source

fn add_label_implicit(&mut self, label: Self::L)

Source

fn merge(self, other: Self) -> Self

Source

fn set_end(&mut self, end: Pos)

Source

fn report(&self, enable_debug: bool) -> Report<'static, Span>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'grm> ParseError for EmptyError<'grm>

Source§

type L = ErrorLabel<'grm>

Source§

impl<'grm> ParseError for SetError<'grm>

Source§

type L = ErrorLabel<'grm>

Source§

impl<'grm> ParseError for TreeError<'grm>

Source§

type L = ErrorLabel<'grm>