[−][src]Trait lber::Consumer
The Consumer trait wraps a computation and its state
it depends on the input type I, the produced value's type O, the error type E, and the message type M
Required methods
fn handle(&mut self, input: Input<I>) -> &ConsumerState<O, E, M>
implement handle for the current computation, returning the new state of the consumer
fn state(&self) -> &ConsumerState<O, E, M>
returns the current state
Implementations on Foreign Types
impl<'a, R, S, T, E, M, F, C> Consumer<R, T, E, M> for MapConsumer<'a, C, R, S, T, E, M, F> where
C: Consumer<R, S, E, M>,
E: Clone,
F: Fn(S) -> T,
M: Clone,
S: Clone,
[src]
C: Consumer<R, S, E, M>,
E: Clone,
F: Fn(S) -> T,
M: Clone,
S: Clone,
fn handle(&mut self, input: Input<R>) -> &ConsumerState<T, E, M>
[src]
fn state(&self) -> &ConsumerState<T, E, M>
[src]
impl<'a, 'b, R, S, T, E, M, C1, C2> Consumer<R, T, E, M> for ChainConsumer<'a, 'b, C1, C2, R, S, T, E, M> where
C1: Consumer<R, S, E, M>,
C2: Consumer<S, T, E, M>,
E: Clone,
M: Clone,
S: Clone,
T: Clone,
[src]
C1: Consumer<R, S, E, M>,
C2: Consumer<S, T, E, M>,
E: Clone,
M: Clone,
S: Clone,
T: Clone,
fn handle(&mut self, input: Input<R>) -> &ConsumerState<T, E, M>
[src]
fn state(&self) -> &ConsumerState<T, E, M>
[src]
Implementors
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>