[][src]Trait const_alg::Map

pub trait Map<F> {
    type Output;
    fn map(self, f: F) -> Self::Output;
}

Maps the matrix eagerly with the given function

This takes a function that accepts a elements of the matrix and produces a new matrix from the result of the map

Associated Types

type Output

Loading content...

Required methods

fn map(self, f: F) -> Self::Output

Loading content...

Implementors

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

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

type Output = Matrix<U, { N }, { M }>

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

type Output = Matrix<U, { N }, { M }>

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

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

type Output = Matrix<U, { N }, { M }>

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

Loading content...