Struct parsimonious::impls::TokenParser [] [src]

pub struct TokenParser<F>(_);

Methods

impl<F> TokenParser<F>
[src]

Trait Implementations

impl<F: Debug> Debug for TokenParser<F>
[src]

Formats the value using the given formatter.

impl<F> Copy for TokenParser<F> where
    F: Copy
[src]

impl<F> Clone for TokenParser<F> where
    F: Copy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F> Parser for TokenParser<F>
[src]

Choice between parsers (returns a parser).

Gives a parser a default value (returns a committed parser).

Sequencing with a committed parser (returns a committed parser).

Sequencing with a committed parser (returns a committed parser which produces an error when this parser returns an error).

Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).

Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).

Iterate one or more times (returns a parser).

Iterate zero or more times (returns a committed parser).

Apply a function to the result (returns a committed parser).

Apply a 2-arguent function to the result (returns a committed parser).

Apply a 3-arguent function to the result (returns a committed parser).

Apply a 4-arguent function to the result (returns a committed parser).

Apply a 5-arguent function to the result (returns a committed parser).

Apply a function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 2-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 3-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 4-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 5-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Take the results of iterating this parser, and feed it into another parser.

A parser which produces its input. Read more

impl<F, I> Uncommitted<Peekable<I>> for TokenParser<F> where
    F: for<'a> Function<&'a I::Item, Output = bool>,
    I: Iterator
[src]

The type of the data being produced by the parser.

The type of the parser state.

Provides data to the parser. Read more