Function combine::stream::uncons_while1

source ·
pub fn uncons_while1<Input, F>(
    input: &mut Input,
    predicate: F,
) -> ParseResult<Input::Range, Input::Error>
where F: FnMut(Input::Token) -> bool, Input: ?Sized + RangeStream,
Expand description

Takes items from stream, testing each one with predicate returns a range of at least one items which passed predicate.

§Note

This may not return PeekOk as it should uncons at least one token.