Trait ArrayIterArgmin

Source
pub trait ArrayIterArgmin<T>: ArrayIter<T>{
    // Provided methods
    fn argmin(&self) -> Option<usize> { ... }
    fn non_zero_argmin(&self) -> Option<usize> { ... }
}

Provided Methods§

Source

fn argmin(&self) -> Option<usize>

Returns the index of the element with the smallest value.

Source

fn non_zero_argmin(&self) -> Option<usize>

Returns the index of the element with the smallest value that is not equal to the default value.

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: PartialOrd + Default, const N: usize> ArrayIterArgmin<T> for [T; N]

Implementors§