Skip to main content

on_first_data_where

Function on_first_data_where 

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

on_first_data_where: run a side-effect once on the first value satisfying where_pred.