[][src]Trait building_blocks_storage::access::ForEach

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

Associated Types

type Data

Loading content...

Required methods

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

Loading content...

Implementors

impl<'a, F, N, T> ForEach<N, PointN<N>> for F where
    F: Fn(&PointN<N>) -> T,
    PointN<N>: Copy,
    ExtentN<N>: IntegerExtent<N>, 
[src]

type Data = T

impl<'a, M, F, N, T, S, Coord> ForEach<N, Coord> for TransformMap<'a, M, F> where
    F: Fn(T) -> S,
    M: ForEach<N, Coord, Data = T>, 
[src]

type Data = S

impl<'a, N, T, M> ForEach<N, PointN<N>> for ChunkMapReader<'a, N, T, M> where
    T: Copy,
    M: Clone,
    PointN<N>: IntegerPoint + ChunkShape<N> + Eq + Hash,
    ExtentN<N>: IntegerExtent<N>,
    ArrayN<N, T>: Array<N> + ForEach<N, PointN<N>, Data = T>, 
[src]

type Data = T

impl<N, T> ForEach<N, (PointN<N>, Stride)> for ArrayN<N, T> where
    Self: Sized + Array<N> + Get<Stride, Data = T> + GetUnchecked<Stride, Data = T>, 
[src]

type Data = T

impl<N, T> ForEach<N, Stride> for ArrayN<N, T> where
    Self: Sized + Array<N> + Get<Stride, Data = T> + GetUnchecked<Stride, Data = T>, 
[src]

type Data = T

impl<N, T> ForEach<N, PointN<N>> for ArrayN<N, T> where
    Self: Sized + Array<N> + Get<Stride, Data = T> + GetUnchecked<Stride, Data = T>, 
[src]

type Data = T

impl<N, T> ForEach<N, PointN<N>> for AmbientExtent<N, T> where
    T: Clone,
    ExtentN<N>: IntegerExtent<N>, 
[src]

type Data = T

Loading content...