Struct parsimonious::CharacterParser [] [src]

pub struct CharacterParser<F>(_);

Trait Implementations

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

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

Formats the value using the given formatter.

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

impl<F> Clone for CharacterParser<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<F> Parser for CharacterParser<F> where F: Fn(char) -> bool
[src]

impl<'a, F> ParserOf<&'a str> for CharacterParser<F> where F: Copy + Fn(char) -> bool
[src]

type Output = Option<char>

type State = CharacterStatefulParser<F>

fn init(&self) -> Self::State

fn boxable(self) -> BoxableParser<Self::State> where Self: Sized

impl<F> GuardedParser for CharacterParser<F> where F: Fn(char) -> bool
[src]

fn or_else<P>(self, other: P) -> OrElseGuardedParser<Self, P> where Self: Sized, P: GuardedParser

fn or_emit<F>(self, factory: F) -> OrEmitParser<Self, F> where Self: Sized

fn and_then<P>(self, other: P) -> AndThenGuardedParser<Self, P> where Self: Sized, P: Parser

fn plus<F>(self, factory: F) -> PlusParser<Self, F> where Self: Sized

fn star<F>(self, factory: F) -> StarParser<Self, F> where Self: Sized

fn map<F>(self, f: F) -> MapGuardedParser<Self, F> where Self: Sized

fn buffer(self) -> BufferedGuardedParser<Self> where Self: Sized

impl<'a, F> GuardedParserOf<&'a str> for CharacterParser<F> where F: Fn(char) -> bool
[src]

type Output = char

type State = ImpossibleStatefulParser<char>

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