Enum abortable_parser::Result [−][src]
The result of a parsing attempt.
Variants
Complete(I, O)
Complete represents a successful match.
Incomplete(usize)
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)
Fail represents a failed match.
Abort(Error)
Abort represents a match failure that the parser cannot recover from.
Methods
impl<I: InputIter, O> Result<I, O>
[src]
impl<I: InputIter, O> Result<I, O>
pub fn is_complete(&self) -> bool
[src]
pub fn is_complete(&self) -> bool
Returns true if the Result is Complete.
pub fn is_incomplete(&self) -> bool
[src]
pub fn is_incomplete(&self) -> bool
Returns true if the Result is Incomoplete.
pub fn is_fail(&self) -> bool
[src]
pub fn is_fail(&self) -> bool
Returns true if the Result is Fail.
pub fn is_abort(&self) -> bool
[src]
pub fn is_abort(&self) -> bool
Returns true if the Result is Abort.