Struct combine::parser::PartialMode
[−]
[src]
pub struct PartialMode { pub first: bool, }
Fields
first: bool
Trait Implementations
impl Copy for PartialMode
[src]
impl Clone for PartialMode
[src]
fn clone(&self) -> PartialMode
[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 Default for PartialMode
[src]
fn default() -> PartialMode
[src]
Returns the "default value" for a type. Read more
impl ParseMode for PartialMode
[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,