[][src]Trait const_alg::ForEach

pub trait ForEach<F> {
    fn for_each(self, f: F);
}

Calls a function eagerly on all elements of a matrix

This takes a function that accepts items from the matrix, and calls it on all elements of the matrix

Required methods

fn for_each(self, f: F)

Loading content...

Implementors

impl<'a, T, F, const N: usize, const M: usize> ForEach<F> for &'a Matrix<T, { N }, { M }> where
    F: FnMut(&'a T), 
[src]

impl<'a, T, F, const N: usize, const M: usize> ForEach<F> for &'a mut Matrix<T, { N }, { M }> where
    F: FnMut(&'a mut T), 
[src]

impl<T, F, const N: usize, const M: usize> ForEach<F> for Matrix<T, { N }, { M }> where
    F: FnMut(T), 
[src]

Loading content...