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.
Trait Implementations§
Auto Trait Implementations§
impl<I, O> Freeze for Result<I, O>
impl<I, O> RefUnwindSafe for Result<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for Result<I, O>
impl<I, O> Sync for Result<I, O>
impl<I, O> Unpin for Result<I, O>
impl<I, O> UnwindSafe for Result<I, O>where
I: UnwindSafe,
O: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more