TupleSortByKey

Trait TupleSortByKey 

Source
pub trait TupleSortByKey<T> {
    // Required method
    fn sort_by_key<K>(&mut self, selector: impl FnMut(&T) -> K)
       where K: PartialOrd;
}
Expand description

Sort tuples, currently an alias for sort_selection

Required Methods§

Source

fn sort_by_key<K>(&mut self, selector: impl FnMut(&T) -> K)
where K: PartialOrd,

Sort tuples, currently an alias for sort_selection

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, S> TupleSortByKey<T> for S