Skip to main content

Min

Trait Min 

Source
pub trait Min {
    // Required method
    fn min_elementwise(self, other: Self) -> Self;
}
Expand description

Min function in a component way

Required Methods§

Source

fn min_elementwise(self, other: Self) -> Self

Min function in a component way

Can cause a panic for grid if the size mismatch

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 Min for bool

Source§

fn min_elementwise(self, other: bool) -> bool

Source§

impl Min for f32

Source§

fn min_elementwise(self, other: f32) -> f32

Source§

impl Min for f64

Source§

fn min_elementwise(self, other: f64) -> f64

Source§

impl Min for i8

Source§

fn min_elementwise(self, other: i8) -> i8

Source§

impl Min for i16

Source§

fn min_elementwise(self, other: i16) -> i16

Source§

impl Min for i32

Source§

fn min_elementwise(self, other: i32) -> i32

Source§

impl Min for i64

Source§

fn min_elementwise(self, other: i64) -> i64

Source§

impl Min for isize

Source§

fn min_elementwise(self, other: isize) -> isize

Source§

impl Min for u8

Source§

fn min_elementwise(self, other: u8) -> u8

Source§

impl Min for u16

Source§

fn min_elementwise(self, other: u16) -> u16

Source§

impl Min for u32

Source§

fn min_elementwise(self, other: u32) -> u32

Source§

impl Min for u64

Source§

fn min_elementwise(self, other: u64) -> u64

Source§

impl Min for usize

Source§

fn min_elementwise(self, other: usize) -> usize

Implementors§

Source§

impl<S> Min for S
where S: MapInternWith, <S as MapIntern>::Item: Min,