Struct chumsky::error::Cheap

source ·
pub struct Cheap<I, S = Range<usize>> { /* private fields */ }
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§

Returns the span that the error occurred at.

Returns the error’s label, if any.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The type of spans to be used in the error.
The label used to describe a syntactic structure currently being parsed. Read more
Create a new error describing a conflict between expected inputs and that which was actually found. Read more
Indicate that the error occurred while parsing a particular syntactic structure. Read more
Merge two errors that point to the same input together, combining their information.
Create a new error describing a delimiter that was not correctly closed. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The number of items that this chain link consists of.
Append the elements in this link to the chain.
An iterator over the items within this container, by value.
Iterate over the elements of the container (using internal iteration because GATs are unstable).

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.