Skip to main content

take_matching_index

Function take_matching_index 

Source
fn take_matching_index<T>(
    values: &[T],
    consumed: &mut [bool],
    predicate: impl Fn(&T) -> bool,
) -> Option<usize>