Enum parsimonious::ParseResult
[−]
[src]
pub enum ParseResult<P, S> where P: StatefulParserOf<S> {
Done(S, P::Output),
Continue(P),
}
The result of a parse.
Variants
Done(S, P::Output)
The parse is finished.
Continue(P)
The parse can continue.
Methods
impl<P, S> ParseResult<P, S> where P: StatefulParserOf<S>
[src]
fn map<F, Q>(self, f: F) -> ParseResult<Q, S> where Q: StatefulParserOf<S, Output=P::Output>, F: Fn(P) -> Q
Apply a function the the Continue
branch of a parse result.