Skip to main content

vec_partition

Function vec_partition 

Source
pub fn vec_partition<T, F: Fn(&T) -> bool>(
    v: Vec<T>,
    pred: F,
) -> (Vec<T>, Vec<T>)
Expand description

Partition into matching and non-matching elements.