[−][src]Trait const_alg::ForBoth
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)
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]
F: FnMut(&'a T, &'b U),
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]
F: FnMut(&'a mut T, &'b U),
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]
F: FnMut(&'a T, &'b mut U),
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]
F: FnMut(&'a mut T, &'b mut U),
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]
F: FnMut(&'a T, U),
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]
F: FnMut(&'a mut T, U),
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]
F: FnMut(T, &'b U),
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]
F: FnMut(T, &'b mut U),
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]
F: FnMut(T, U),