pub trait CustomSort {
// Required methods
fn compare(&self, a: NonZero<u32>, b: NonZero<u32>) -> Ordering;
fn asc(&self) -> Vec<NonZero<u32>>;
fn desc(&self) -> Vec<NonZero<u32>>;
}Required Methods§
fn compare(&self, a: NonZero<u32>, b: NonZero<u32>) -> Ordering
fn asc(&self) -> Vec<NonZero<u32>>
fn desc(&self) -> Vec<NonZero<u32>>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".