Function rustc_mir_transform::coverage::spans::drain_front_while

source ยท
fn drain_front_while<'a, T>(
    queue: &'a mut VecDeque<T>,
    pred_fn: impl FnMut(&T) -> bool,
) -> impl Iterator<Item = T> + Captures<'a>
Expand description

Similar to .drain(..), but stops just before it would remove an item not satisfying the predicate.