pub trait ArrayIterArgmax<T>: ArrayIter<T>{
    // Provided methods
    fn argmax(&self) -> Option<usize> { ... }
    fn non_zero_argmax(&self) -> Option<usize> { ... }
}

Provided Methods§

source

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

Returns the index of the element with the largest value.

source

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

Returns the index of the element with the largest 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> ArrayIterArgmax<T> for [T; N]

Implementors§