pub trait SortOrder<T>: Clone + Copy {
// Required method
fn cmp(_: &T, _: &T) -> Ordering;
// Provided method
fn by_sorting<'a, S: 'a + Sortable<Item = T>>(s: S) -> Sorted<'a, S, Self> { ... }
}
Required Methods§
Provided Methods§
fn by_sorting<'a, S: 'a + Sortable<Item = T>>(s: S) -> Sorted<'a, S, Self>
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.