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