pub trait ExtremumFunction<T> {
    // Required method
    fn extremum<'a>(&self, a: &T, b: &T) -> T;
}

Required Methods§

source

fn extremum<'a>(&self, a: &T, b: &T) -> T

Returns the most extreme of the two values. For a min-function, just return a.min(b), for max, return a.max(b).

Implementors§