Enum abortable_parser::Result
source · 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§
source§impl<I: InputIter, O> Result<I, O>
impl<I: InputIter, O> Result<I, O>
sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if the Result is Complete.
sourcepub fn is_incomplete(&self) -> bool
pub fn is_incomplete(&self) -> bool
Returns true if the Result is Incomoplete.