Enum nom::Move
[−]
[src]
pub enum Move {
Consume(usize),
Seek(SeekFrom),
Await(Needed),
}Variants
Consume(usize)indcates how much data was consumed
Seek(SeekFrom)indicates where in the input the consumer must seek
Await(Needed)indicates more data is needed
Trait Implementations
impl Debug for Move[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Move[src]
fn clone(&self) -> Move[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 Copy for Move[src]
impl PartialEq for Move[src]
fn eq(&self, __arg_0: &Move) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Move) -> bool[src]
This method tests for !=.
impl Eq for Move[src]
impl<'x, 'b> Producer<'b, &'x [u8], Move> for MemProducer<'x>[src]
fn apply<'a, O, E>(
&'b mut self,
consumer: &'a mut Consumer<&'x [u8], O, E, Move>
) -> &'a ConsumerState<O, E, Move>[src]
&'b mut self,
consumer: &'a mut Consumer<&'x [u8], O, E, Move>
) -> &'a ConsumerState<O, E, Move>
Applies a consumer once on the produced data, and return the consumer's state Read more
fn run<'a: 'b, O, E: 'b>(
&'b mut self,
consumer: &'a mut Consumer<I, O, E, M>
) -> Option<&O>[src]
&'b mut self,
consumer: &'a mut Consumer<I, O, E, M>
) -> Option<&O>
Applies a consumer once on the produced data, and returns the generated value if there is one
impl<'x> Producer<'x, &'x [u8], Move> for FileProducer[src]
fn apply<'a, O, E>(
&'x mut self,
consumer: &'a mut Consumer<&'x [u8], O, E, Move>
) -> &'a ConsumerState<O, E, Move>[src]
&'x mut self,
consumer: &'a mut Consumer<&'x [u8], O, E, Move>
) -> &'a ConsumerState<O, E, Move>
Applies a consumer once on the produced data, and return the consumer's state Read more
fn run<'a: 'b, O, E: 'b>(
&'b mut self,
consumer: &'a mut Consumer<I, O, E, M>
) -> Option<&O>[src]
&'b mut self,
consumer: &'a mut Consumer<I, O, E, M>
) -> Option<&O>
Applies a consumer once on the produced data, and returns the generated value if there is one