Skip to main content

TupleSortedByKey

Trait TupleSortedByKey 

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

Sort tuples, currently use sort_selection

Required Methods§

Source

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

Sort tuples, currently use 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> TupleSortedByKey<T> for S
where S: TupleSortByKey<T>,