pub trait ErrorRenderer {
type Output;
// Required methods
fn render(&self, error: &StructuredParseError) -> Self::Output;
fn render_all(&self, errors: &[StructuredParseError]) -> Self::Output;
}Expand description
Trait for rendering structured parse errors to different output formats
Required Associated Types§
Required Methods§
Sourcefn render(&self, error: &StructuredParseError) -> Self::Output
fn render(&self, error: &StructuredParseError) -> Self::Output
Render a single error
Sourcefn render_all(&self, errors: &[StructuredParseError]) -> Self::Output
fn render_all(&self, errors: &[StructuredParseError]) -> Self::Output
Render multiple errors
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".