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

Implementors§