Struct parsimonious::MapGuardedParser
[−]
[src]
pub struct MapGuardedParser<P, F>(_, _);
Trait Implementations
impl<P: Debug, F: Debug> Debug for MapGuardedParser<P, F>
[src]
impl<P, F> Copy for MapGuardedParser<P, F> where P: Copy, F: Copy
[src]
impl<P, F> Clone for MapGuardedParser<P, F> where P: Clone, F: Copy
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<P, F, S> GuardedParserOf<S> for MapGuardedParser<P, F> where P: GuardedParserOf<S>, F: Copy + Fn<(P::Output,)>
[src]
type Output = F::Output
The type of the data being produced by the parser.
type State = MapStatefulParser<P::State, F>
The type of the parser state.
fn parse(&self, value: S) -> GuardedParseResult<Self::State, S>
Provides data to the parser. Read more
fn or_else<P>(self, other: P) -> OrElseGuardedParser<Self, P> where Self: Sized, P: GuardedParserOf<S>
Choice between guarded parsers (returns a guarded parser).
fn or_emit<F>(self, factory: F) -> OrEmitParser<Self, F> where Self: Sized
Gives a guarded parser a default value (returns a parser).
fn and_then<P>(self, other: P) -> AndThenParser<Self, P> where Self: Sized, P: ParserOf<S>
Sequencing with a parser (returns a guarded parser).
fn plus<F>(self, factory: F) -> PlusParser<Self, F> where Self: Sized
Iterate one or more times (returns a guarded parser).
fn star<F>(self, factory: F) -> StarParser<Self, F> where Self: Sized
Iterate zero or more times (returns a parser).
fn map<F>(self, f: F) -> MapGuardedParser<Self, F> where Self: Sized
Apply a function to the result (returns a guarded parser).
fn buffer(self) -> BufferedGuardedParser<Self> where Self: Sized
Replace the result with the input. Read more