Enum parsell::MaybeParseResult
[−]
[src]
pub enum MaybeParseResult<P, S> where P: Stateful<S> { Empty(S), Abort(S), Commit(ParseResult<P, S>), }
The result of a parse.
Variants
Empty(S)
The input was empty.
Abort(S)
The parser must backtrack.
Commit(ParseResult<P, S>)
The parser has committed to parsing the input.
Methods
impl<P, S> MaybeParseResult<P, S> where P: Stateful<S>
[src]
fn map<F, Q>(self, f: F) -> MaybeParseResult<Q, S> where Q: Stateful<S, Output=P::Output>, F: Function<P, Output=Q>
Apply a function the the Commit branch of a parse result