Struct nom::ProducerRepeat
[−]
[src]
pub struct ProducerRepeat<I: Copy> { // some fields omitted }
ProducerRepeat takes a single value, and generates it at each step
Trait Implementations
impl<'b, I: Copy, M: 'b> Producer<'b, I, M> for ProducerRepeat<I>
[src]
fn apply<'a, O, E>(&'b mut self, consumer: &'a mut Consumer<I, O, E, M>) -> &'a ConsumerState<O, E, M>
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>
Applies a consumer once on the produced data, and returns the generated value if there is one