Trait lib::util::vec::Comparator

source ·
pub trait Comparator {
    // Required methods
    fn smaller(&self) -> impl Fn(usize, usize) -> bool;
    fn greater(&self) -> impl Fn(usize, usize) -> bool;
}

Required Methods§

source

fn smaller(&self) -> impl Fn(usize, usize) -> bool

source

fn greater(&self) -> impl Fn(usize, usize) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Ord> Comparator for Vec<T>

source§

fn smaller(&self) -> impl Fn(usize, usize) -> bool

source§

fn greater(&self) -> impl Fn(usize, usize) -> bool

Implementors§