Struct combine::parser::FirstMode
[−]
[src]
pub struct FirstMode;
Trait Implementations
impl Copy for FirstMode
[src]
impl Clone for FirstMode
[src]
fn clone(&self) -> FirstMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ParseMode for FirstMode
[src]
fn is_first(self) -> bool
[src]
If true
then the parser has no previous state to resume otherwise the parser might have state to resume which it must check. Read more
fn set_first(&mut self)
[src]
Puts the mode into first
parsing.
fn parse_consumed<P>(
self,
parser: &mut P,
input: &mut P::Input,
state: &mut P::PartialState
) -> ConsumedResult<P::Output, P::Input> where
P: Parser,
[src]
self,
parser: &mut P,
input: &mut P::Input,
state: &mut P::PartialState
) -> ConsumedResult<P::Output, P::Input> where
P: Parser,