Function combine::stream::uncons_while1 [] [src]

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

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 EmptyOk as it should uncons at least one item.