Struct espr::parser::combinator::Map   [−][src]
pub struct Map<'a, P, O1, O2, F> { /* fields omitted */ }Trait Implementations
A parser takes in input type, and returns a Result containing
either the remaining input and the output value, or an error Read more
Maps a function over the result of a parser
Creates a second parser from the output of the first one, then apply over the rest of the input
fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O> where
    G: Parser<O, O2, E>, 
fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O> where
    G: Parser<O, O2, E>, 
Applies a second parser over the output of the first one
fn and<G, O2>(self, g: G) -> And<Self, G> where
    G: Parser<I, O2, E>, 
fn and<G, O2>(self, g: G) -> And<Self, G> where
    G: Parser<I, O2, E>, 
Applies a second parser after the first one, return their results as a tuple
fn or<G>(self, g: G) -> Or<Self, G> where
    G: Parser<I, O, E>, 
fn or<G>(self, g: G) -> Or<Self, G> where
    G: Parser<I, O, E>, 
Applies a second parser over the input if the first one failed
Auto Trait Implementations
impl<'a, P, O1, O2, F> !RefUnwindSafe for Map<'a, P, O1, O2, F>
impl<'a, P, O1, O2, F> !UnwindSafe for Map<'a, P, O1, O2, F>
Blanket Implementations
Mutably borrows from an owned value. Read more