RepeatExt

Trait RepeatExt 

Source
pub trait RepeatExt<I, O, E> {
    // Provided method
    fn repeat<R>(self, r: R) -> RepeatPipe<Self, O>
       where R: TryInto<Repetition>,
             R::Error: Error,
             Self: Pipe<I, O, E> + Sized { ... }
}
Expand description

Combinator that makes repetitions

Provided Methods§

Source

fn repeat<R>(self, r: R) -> RepeatPipe<Self, O>
where R: TryInto<Repetition>, R::Error: Error, Self: Pipe<I, O, E> + Sized,

Repeats this pipe.

The repetition can be a fixed number or a range

Implementors§

Source§

impl<I, O, E, P> RepeatExt<I, O, E> for P
where P: Pipe<I, O, E>,