Enum lber::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<'x> Producer<'x, &'x [u8], Move> for FileProducer
[src]
fn apply<O, E>(
&'x mut self,
consumer: &'a mut (Consumer<&'x [u8], O, E, Move> + 'a)
) -> &'a ConsumerState<O, E, Move>
[src]
&'x mut self,
consumer: &'a mut (Consumer<&'x [u8], O, E, Move> + 'a)
) -> &'a ConsumerState<O, E, Move>
Applies a consumer once on the produced data, and return the consumer's state Read more
fn run<'a, O, E>(
&'b mut self,
consumer: &'a mut (Consumer<I, O, E, M> + 'a)
) -> Option<&'b O> where
'a: 'b,
E: 'b,
[src]
&'b mut self,
consumer: &'a mut (Consumer<I, O, E, M> + 'a)
) -> Option<&'b O> where
'a: 'b,
E: 'b,
Applies a consumer once on the produced data, and returns the generated value if there is one
impl<'x, 'b> Producer<'b, &'x [u8], Move> for MemProducer<'x>
[src]
fn apply<O, E>(
&'b mut self,
consumer: &'a mut (Consumer<&'x [u8], O, E, Move> + 'a)
) -> &'a ConsumerState<O, E, Move>
[src]
&'b mut self,
consumer: &'a mut (Consumer<&'x [u8], O, E, Move> + 'a)
) -> &'a ConsumerState<O, E, Move>
Applies a consumer once on the produced data, and return the consumer's state Read more
fn run<'a, O, E>(
&'b mut self,
consumer: &'a mut (Consumer<I, O, E, M> + 'a)
) -> Option<&'b O> where
'a: 'b,
E: 'b,
[src]
&'b mut self,
consumer: &'a mut (Consumer<I, O, E, M> + 'a)
) -> Option<&'b O> where
'a: 'b,
E: 'b,
Applies a consumer once on the produced data, and returns the generated value if there is one
impl Copy for Move
[src]
impl Eq for Move
[src]
impl PartialEq<Move> 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 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 Debug for Move
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<'a> Consumer<&'a [u8], StructureTag, (), Move> for Parser
[src]
fn handle(
&mut self,
input: Input<&[u8]>
) -> &ConsumerState<StructureTag, (), Move>
[src]
&mut self,
input: Input<&[u8]>
) -> &ConsumerState<StructureTag, (), Move>
implement handle for the current computation, returning the new state of the consumer
fn state(&self) -> &ConsumerState<StructureTag, (), Move>
[src]
returns the current state