[][src]Function tray_rust::partition::partition

pub fn partition<'a, T: 'a, I, F>(it: I, pred: F) -> usize where
    I: DoubleEndedIterator<Item = &'a mut T>,
    F: Fn(&T) -> bool

Re-orders elements in the range yielded by it based on pred. All elements that the predicate returns true for will be placed before all elements that the predicate returned false for. Also returns the index of the first element in the false group