Skip to main content

CustomSort

Trait CustomSort 

Source
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§

Trait Implementations§

Source§

impl Debug for dyn CustomSort

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§