Enum parsimonious::GuardedParseResult
[−]
[src]
pub enum GuardedParseResult<P, S> where P: StatefulParserOf<S> { Empty, Abort(S), Commit(ParseResult<P, S>), }
The result of a guarded parse.
Variants
Empty
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> GuardedParseResult<P, S> where P: StatefulParserOf<S>
[src]
fn map<F, Q>(self, f: F) -> GuardedParseResult<Q, S> where Q: StatefulParserOf<S, Output=P::Output>, F: Function<P, Output=Q>
Apply a function the the Commit branch of a guarded parse result