Enum combine::ParseResult [−][src]
pub enum ParseResult<T, E> {
CommitOk(T),
PeekOk(T),
CommitErr(E),
PeekErr(Tracked<E>),
}Expand description
A Result type which has the committed status flattened into the result.
Conversions to and from std::result::Result can be done using result.into() or
From::from(result)
Variants
The parser has succeeded and has committed to this parse. If a parser after this fails,
other parser alternatives will not be attempted (CommitErr will be returned)
The parser has succeeded and has not committed to this parse. If a parser after this fails,
other parser alternatives will be attempted (PeekErr will be returned)
The parser failed other parse alternatives will not be attempted.
PeekErr(Tracked<E>)The parser failed but other parse alternatives may be attempted.
Tuple Fields of PeekErr
0: Tracked<E>Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<T, E> RefUnwindSafe for ParseResult<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for ParseResult<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for ParseResult<T, E> where
E: Sync,
T: Sync,
impl<T, E> Unpin for ParseResult<T, E> where
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for ParseResult<T, E> where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more