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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: PartialOrd + Default, const N: usize> ArrayIterArgmin<T> for [T; N]

Implementors§