[][src]Trait building_blocks::prelude::ForEachMut

pub trait ForEachMut<N, Coord> {
    type Data;
    fn for_each_mut(
        &mut self,
        extent: &ExtentN<N>,
        f: impl FnMut(Coord, &mut Self::Data)
    ); }

Associated Types

type Data

Loading content...

Required methods

fn for_each_mut(
    &mut self,
    extent: &ExtentN<N>,
    f: impl FnMut(Coord, &mut Self::Data)
)

Loading content...

Implementations on Foreign Types

impl<'a, N, T, M> ForEachMut<N, PointN<N>> for ChunkMap<N, T, M> where
    M: Clone,
    T: Copy,
    PointN<N>: Point,
    PointN<N>: ChunkShape<N>,
    PointN<N>: Eq,
    PointN<N>: Hash,
    ExtentN<N>: IntegerExtent<N>,
    ArrayN<N, T>: ForEachMut<N, PointN<N>>,
    <ArrayN<N, T> as ForEachMut<N, PointN<N>>>::Data == T, 
[src]

type Data = T

Loading content...

Implementors

impl<N, T> ForEachMut<N, (PointN<N>, Stride)> for ArrayN<N, T> where
    ArrayN<N, T>: Sized,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: GetMut<Stride>,
    ArrayN<N, T>: GetUncheckedMut<Stride>,
    ExtentN<N>: Copy,
    <ArrayN<N, T> as GetMut<Stride>>::Data == T,
    <ArrayN<N, T> as GetUncheckedMut<Stride>>::Data == T, 
[src]

type Data = T

impl<N, T> ForEachMut<N, PointN<N>> for ArrayN<N, T> where
    ArrayN<N, T>: Sized,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: GetMut<Stride>,
    ArrayN<N, T>: GetUncheckedMut<Stride>,
    ExtentN<N>: Copy,
    <ArrayN<N, T> as GetMut<Stride>>::Data == T,
    <ArrayN<N, T> as GetUncheckedMut<Stride>>::Data == T, 
[src]

type Data = T

impl<N, T> ForEachMut<N, Stride> for ArrayN<N, T> where
    ArrayN<N, T>: Sized,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: GetMut<Stride>,
    ArrayN<N, T>: GetUncheckedMut<Stride>,
    ExtentN<N>: Copy,
    <ArrayN<N, T> as GetMut<Stride>>::Data == T,
    <ArrayN<N, T> as GetUncheckedMut<Stride>>::Data == T, 
[src]

type Data = T

Loading content...