Enum abortable_parser::Result[][src]

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

The result of a parsing attempt.

Variants

Complete represents a successful match.

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 represents a failed match.

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

Methods

impl<I: InputIter, O> Result<I, O>
[src]

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

impl<I: Debug + InputIter, O: Debug> Debug for Result<I, O>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<I, O> Send for Result<I, O> where
    I: Send,
    O: Send

impl<I, O> Sync for Result<I, O> where
    I: Sync,
    O: Sync