Struct combpop::iter::Collect [] [src]

pub struct Collect<P, V>(_, _)
where
    P: ParserIteratorBase,
    V: FromIterator<P::Element>
;

Trait Implementations

impl<P, V> ParserBase for Collect<P, V> where
    P: ParserIteratorBase,
    V: FromIterator<P::Element>, 
[src]

The input type of the parser. u8 for byte-eating parsers.

The output type which this monadic parser produces.

[src]

Whether the parser "usually" accepts the empty sequence. Only used in emit_expectations.

[src]

Converts a semantic value after parsing. Similar to ParserBase::map, but accepts FnOnce closures. Read more

[src]

Converts a semantic value after parsing. Similar to ParserBase::map, but accepts FnMut closures. Read more

[src]

Converts a semantic value after parsing.

[src]

Monadic operator: run another parser f(x) after parsing. Similar to ParserBase::and_then, but accepts FnOnce closures. Read more

[src]

Monadic operator: run another parser f(x) after parsing. Similar to ParserBase::and_then, but accepts FnMut closures. Read more

[src]

Monadic operator: run another parser f(x) after parsing. Read more

[src]

Applicative operator: run another parser p after parsing. The result is a pair of the result of the parsers. Read more

[src]

If the parser failed without consumption, try another parser.

[src]

Returns a ParserIteratorBase that collects one or more objects from this parser.

impl<S: ?Sized, P, V> ParserOnce<S> for Collect<P, V> where
    S: Stream<Item = P::Input>,
    P: ParserIteratorMut<S>,
    V: FromIterator<P::Element>, 
[src]

[src]

[src]

impl<S: ?Sized, P, V> ParserMut<S> for Collect<P, V> where
    S: Stream<Item = P::Input>,
    P: ParserIteratorMut<S>,
    V: FromIterator<P::Element>, 
[src]

[src]

[src]

[src]

impl<S: ?Sized, P, V> Parser<S> for Collect<P, V> where
    S: Stream<Item = P::Input>,
    P: ParserIterator<S>,
    V: FromIterator<P::Element>, 
[src]

[src]

[src]

[src]