[−][src]Trait const_alg::ZipWith
Zips the matrix eagerly with the given function
Similar to Haskell's zipWith
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 and produces a matrix of the result
Associated Types
type Output
Required methods
Loading content...Implementors
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ZipWith<&'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> ZipWith<&'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> ZipWith<&'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> ZipWith<&'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, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b U) -> V,
[src]
F: FnMut(&'a T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b U) -> V,
[src]
F: FnMut(&'a mut T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b mut U) -> V,
[src]
F: FnMut(&'a T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b mut U) -> V,
[src]
F: FnMut(&'a mut T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, T, U, F, const N: usize, const M: usize> ZipWith<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> ZipWith<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<'a, T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, U) -> V,
[src]
F: FnMut(&'a T, U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(self, other: Matrix<U, { N }, { M }>, f: F) -> Self::Output
[src]
impl<'a, T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, U) -> V,
[src]
F: FnMut(&'a mut T, U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(self, other: Matrix<U, { N }, { M }>, f: F) -> Self::Output
[src]
impl<'b, T, U, F, const N: usize, const M: usize> ZipWith<&'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> ZipWith<&'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<'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b U) -> V,
[src]
F: FnMut(T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b mut U) -> V,
[src]
F: FnMut(T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<T, U, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, U),
[src]
F: FnMut(T, U),
impl<T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, U) -> V,
[src]
F: FnMut(T, U) -> V,