[][src]Trait const_alg::ForBoth

pub trait ForBoth<RHS, F> {
    fn for_both(self, other: RHS, f: F);
}

Calls a function eagerly on all elements of two matricies

This takes a secondary matrix, and a function that accepts two arguments, elements into each matrix, and calls the function with all of the corrosponding elements of each matrix

Required methods

fn for_both(self, other: RHS, f: F)

Loading content...

Implementors

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

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

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

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

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

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

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

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

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

Loading content...