[][src]Function combinedfun::record_while

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

Like consume_while, but returns the matched substring.

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