pub enum Result<I: InputIter, O> {
    Complete(I, O),
    Incomplete(I),
    Fail(Error<I>),
    Abort(Error<I>),
}
Expand description

The result of a parsing attempt.

Variants§

§

Complete(I, O)

Complete represents a successful match.

§

Incomplete(I)

Incomplete indicates input ended before a match could be completed. It contains the offset at which the input ended before a match could be completed.

§

Fail(Error<I>)

Fail represents a failed match.

§

Abort(Error<I>)

Abort represents a match failure that the parser cannot recover from.

Implementations§

Returns true if the Result is Complete.

Returns true if the Result is Incomoplete.

Returns true if the Result is Fail.

Returns true if the Result is Abort.

Trait Implementations§

Formats the value using the given formatter. 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

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