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§
Sourcefn sort_by_key<K>(&mut self, selector: impl FnMut(&T) -> K)where
K: PartialOrd,
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.