pub trait CustomSort {
    // Required methods
    fn compare(&self, a: u32, b: u32) -> Ordering;
    fn asc(&self) -> Vec<u32, Global>;
    fn desc(&self) -> Vec<u32, Global>;
}

Required Methods§

source

fn compare(&self, a: u32, b: u32) -> Ordering

source

fn asc(&self) -> Vec<u32, Global>

source

fn desc(&self) -> Vec<u32, Global>

Trait Implementations§

source§

impl Debug for dyn CustomSort

source§

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

Formats the value using the given formatter. Read more

Implementors§