pub trait PermFromSorting<S, T>{
type Output;
// Required methods
fn from_sort(vec: S) -> Self::Output
where T: Ord;
fn from_sort_by<F>(vec: S, compare: F) -> Self::Output
where F: FnMut(&T, &T) -> Ordering;
fn from_sort_by_key<B, F>(vec: S, f: F) -> Self::Output
where B: Ord,
F: FnMut(&T) -> B;
fn from_sort_by_cached_key<B, F>(vec: S, f: F) -> Self::Output
where B: Ord,
F: FnMut(&T) -> B;
}
Expand description
An operator that builds a permutation type by sorting slice-like types.
Required Associated Types§
Required Methods§
Sourcefn from_sort(vec: S) -> Self::Outputwhere
T: Ord,
fn from_sort(vec: S) -> Self::Outputwhere
T: Ord,
Builds a permutation by sorting a slice-like type.
Sourcefn from_sort_by<F>(vec: S, compare: F) -> Self::Output
fn from_sort_by<F>(vec: S, compare: F) -> Self::Output
Builds a permutation by sorting a slice-like type with a comparing function.
Sourcefn from_sort_by_key<B, F>(vec: S, f: F) -> Self::Output
fn from_sort_by_key<B, F>(vec: S, f: F) -> Self::Output
Builds a permutation by sorting a slice-like type with a key function.
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.