Struct peruse::parsers::MapParser [] [src]

pub struct MapParser<I: ?Sized, P: Parser<I = I>, T> { /* fields omitted */ }

A Parser that uses a closure to map the result of another parser

Trait Implementations

impl<I: ?Sized, P: Parser<I = I>, T> Parser for MapParser<I, P, T>
[src]

impl<I: ?Sized, P: ParserCombinator<I = I>, T> Clone for MapParser<I, P, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: ?Sized, P: ParserCombinator<I = I>, T> ParserCombinator for MapParser<I, P, T>
[src]

Chain this parser with another parser, creating new parser that returns a tuple of their results Read more

Chain this parser with another parser, but toss the value from this parser

Chain this parser with another parser, but toss the value from the other parser

Create a new parser that will repeat this parser until it returns an error

Map the value of this parser

Create a disjunction with another parser. If this parser produces an error, the other parser will be used