Trait prism_parser::error::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>

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type L = ErrorLabel<'grm>

source§

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

§

type L = ErrorLabel<'grm>

source§

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

§

type L = ErrorLabel<'grm>