Skip to main content

take_while

Function take_while 

Source
pub fn take_while<S: Clone + 'static>(
    pred: impl Fn(&S) -> bool + 'static,
) -> Operator<S>
Expand description

take_while: emit while pred holds; first failed value completes without emission.