Function combine::stream::uncons_while1 [−][src]
pub fn uncons_while1<Input: ?Sized, F>(
input: &mut Input,
predicate: F
) -> ParseResult<Input::Range, Input::Error> where
F: FnMut(Input::Token) -> bool,
Input: 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.