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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".