Struct parsimonious::CharacterGuardedParser [] [src]

pub struct CharacterGuardedParser<F>(_);

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl<F> Clone for CharacterGuardedParser<F> where 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<'a, F> GuardedParserOf<&'a str> for CharacterGuardedParser<F> where F: Fn(char) -> bool
[src]

type Output = char

The type of the data being produced by the parser.

type State = ImpossibleStatefulParser<char>

The type of the parser state.

fn parse(&self, value: &'a str) -> GuardedParseResult<Self::State, &'a str>

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