argmin::core

Trait ArgminMinMax

Source
pub trait ArgminMinMax {
    // Required methods
    fn min(x: &Self, y: &Self) -> Self;
    fn max(x: &Self, y: &Self) -> Self;
}
Expand description

Minimum and Maximum of type T

Required Methods§

Source

fn min(x: &Self, y: &Self) -> Self

Select piecewise minimum

Source

fn max(x: &Self, y: &Self) -> Self

Select piecewise maximum

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> ArgminMinMax for Vec<T>
where T: PartialOrd + Clone,

Source§

fn min(x: &Self, y: &Self) -> Vec<T>

Source§

fn max(x: &Self, y: &Self) -> Vec<T>

Implementors§