TupleSortSelection

Trait TupleSortSelection 

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

Sort tuples using selection sort

Required Methods§

Source

fn sort_selection(&mut self)

Sort tuples using selection sort

It has an O(n2) time complexity

Implementors§

Source§

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