Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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