pub trait IntoUnstableSorted<Item>: IsArray<Item> {
// Required methods
fn into_sorted_unstable(self) -> Self
where Item: Ord;
fn into_sorted_unstable_by<Order>(self, order: Order) -> Self
where Order: FnMut(&Item, &Item) -> Ordering;
fn into_sorted_unstable_by_key<Key, GetKey>(self, get_key: GetKey) -> Self
where GetKey: FnMut(&Item) -> Key,
Key: Ord;
}Expand description
Utility methods to sort various types of arrays with an unstable algorithm.
Required Methods§
Sourcefn into_sorted_unstable(self) -> Selfwhere
Item: Ord,
fn into_sorted_unstable(self) -> Selfwhere
Item: Ord,
Sort an array by Ord and return it.
Sourcefn into_sorted_unstable_by<Order>(self, order: Order) -> Self
fn into_sorted_unstable_by<Order>(self, order: Order) -> Self
Sort an array by a function and return it.
Sourcefn into_sorted_unstable_by_key<Key, GetKey>(self, get_key: GetKey) -> Self
fn into_sorted_unstable_by_key<Key, GetKey>(self, get_key: GetKey) -> Self
Sort an array by a key extraction function and return it.
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.