TupleSortDescSelection

Trait TupleSortDescSelection 

Source
pub trait TupleSortDescSelection<T> {
    // Required method
    fn sort_desc_selection(&mut self);
}
Expand description

Sort tuples in reverse order using selection sort

Required Methods§

Source

fn sort_desc_selection(&mut self)

Sort tuples in reverse order using selection sort

It has an O(n2) time complexity

Implementors§

Source§

impl<T, S> TupleSortDescSelection<T> for S
where T: PartialOrd, S: TupleSame<T> + TupleSwap<Output = T>,