combine::stream

Function uncons_while

Source
pub fn uncons_while<I, F>(
    input: &mut I,
    predicate: F,
) -> ConsumedResult<I::Range, I>
where F: FnMut(I::Item) -> bool, I: ?Sized + RangeStream, I::Range: Range,
Expand description

Removes items from the input while predicate returns true.