Sort

Trait Sort 

Source
pub trait Sort {
    // Required method
    fn sort_indices(&self, indices: &mut [usize]);
}

Required Methods§

Source

fn sort_indices(&self, indices: &mut [usize])

Sort the given indices into this collection with respect to values provided by this collection.

Implementations on Foreign Types§

Source§

impl<T: PartialOrd + Clone> Sort for [T]

Source§

fn sort_indices(&self, indices: &mut [usize])

Sort the given indices into this collection with respect to values provided by this collection. Invalid values like NaN in floats will be pushed to the end.

Implementors§