Function chomp::combinators::bounded::many [] [src]

pub fn many<I: Input, T, E, F, U, R>(i: I, r: R, f: F) -> ParseResult<I, T, E> where
    R: BoundedRange,
    F: FnMut(I) -> ParseResult<I, U, E>,
    T: FromIterator<U>, 

Applies the parser F multiple times until it fails or the maximum value of the range has been reached, collecting the successful values into a T: FromIterator.

Propagates errors if the minimum number of iterations has not been met

Panics

Will panic if the end of the range is smaller than the start of the range.

Notes