[][src]Enum abortable_parser::Result

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

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.

Methods

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

pub fn is_complete(&self) -> bool[src]

Returns true if the Result is Complete.

pub fn is_incomplete(&self) -> bool[src]

Returns true if the Result is Incomoplete.

pub fn is_fail(&self) -> bool[src]

Returns true if the Result is Fail.

pub fn is_abort(&self) -> bool[src]

Returns true if the Result is Abort.

Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]