[][src]Function combinedfun::consume_while

pub fn consume_while<I, E, F, R: RangeLike>(
    f: F,
    r: R
) -> Parser<impl ParserImpl<I, Output = (), Error = E>, I> where
    I: SplitFirst,
    F: Fn(&I::Element) -> bool,
    E: ConsumeError<I>,
    I: Clone

Consumes elements/characters of the input that match the given condition.

The range acts like the range given to other repeating combinators, see the documentation for Parser