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§
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>
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.