Expand description
A minimal error type that tracks only the error span and label. This type is most useful when you want fast parsing but do not particularly care about the quality of error messages.
Implementations§
Trait Implementations§
source§impl<I, S: Span + Clone + Debug> Error<I> for Cheap<I, S>
impl<I, S: Span + Clone + Debug> Error<I> for Cheap<I, S>
§type Label = &'static str
type Label = &'static str
The label used to describe a syntactic structure currently being parsed. Read more
source§fn expected_input_found<Iter: IntoIterator<Item = Option<I>>>(
span: Self::Span,
_: Iter,
_: Option<I>
) -> Self
fn expected_input_found<Iter: IntoIterator<Item = Option<I>>>(
span: Self::Span,
_: Iter,
_: Option<I>
) -> Self
Create a new error describing a conflict between expected inputs and that which was actually found. Read more
source§fn with_label(self, label: Self::Label) -> Self
fn with_label(self, label: Self::Label) -> Self
Indicate that the error occurred while parsing a particular syntactic structure. Read more