ForEach

Trait ForEach 

Source
pub trait ForEach<N, Coord> {
    type Item;

    // Required method
    fn for_each(&self, extent: &ExtentN<N>, f: impl FnMut(Coord, Self::Item));
}

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, N, Coord, T> ForEach<N, Coord> for &'a T
where T: 'a + ForEach<N, Coord> + ?Sized,

Source§

type Item = <T as ForEach<N, Coord>>::Item

Source§

fn for_each( &self, extent: &ExtentN<N>, f: impl FnMut(Coord, <&'a T as ForEach<N, Coord>>::Item), )

Source§

impl<'a, N, Coord, T> ForEach<N, Coord> for &'a mut T
where T: 'a + ForEach<N, Coord> + ?Sized,

Source§

type Item = <T as ForEach<N, Coord>>::Item

Source§

fn for_each( &self, extent: &ExtentN<N>, f: impl FnMut(Coord, <&'a mut T as ForEach<N, Coord>>::Item), )

Implementors§

Source§

impl<'a, N, Delegate, F, In, Out, Coord> ForEach<N, Coord> for TransformMap<'a, Delegate, F>
where F: Fn(In) -> Out, Delegate: ForEach<N, Coord, Item = In>,

Source§

type Item = Out

Source§

impl<Delegate, N, T, Bldr, Store> ForEach<N, PointN<N>> for ChunkMapLodView<Delegate>
where Delegate: Deref<Target = ChunkMap<N, T, Bldr, Store>>, PointN<N>: IntegerPoint<N>, Bldr: ChunkMapBuilder<N, T>, <<Bldr as ChunkMapBuilder<N, T>>::Chunk as Chunk>::Array: ForEach<N, PointN<N>, Item = T>, T: Clone, Store: ChunkReadStorage<N, <Bldr as ChunkMapBuilder<N, T>>::Chunk>,

Source§

type Item = T

Source§

impl<F, N, T> ForEach<N, PointN<N>> for Func<F>
where F: Fn(PointN<N>) -> T, PointN<N>: IntegerPoint<N>,

Source§

type Item = T

Source§

impl<N, Chan> ForEach<N, (PointN<N>, Stride)> for Array<N, Chan>
where Array<N, Chan>: Get<Stride>, N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>,

Source§

type Item = <Array<N, Chan> as Get<Stride>>::Item

Source§

impl<N, Chan> ForEach<N, ()> for Array<N, Chan>
where Array<N, Chan>: Get<Stride>, N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>,

Source§

type Item = <Array<N, Chan> as Get<Stride>>::Item

Source§

impl<N, Chan> ForEach<N, PointN<N>> for Array<N, Chan>
where Array<N, Chan>: Get<Stride>, N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>,

Source§

type Item = <Array<N, Chan> as Get<Stride>>::Item

Source§

impl<N, Chan> ForEach<N, Stride> for Array<N, Chan>
where Array<N, Chan>: Get<Stride>, N: ArrayIndexer<N>, PointN<N>: IntegerPoint<N>,

Source§

type Item = <Array<N, Chan> as Get<Stride>>::Item

Source§

impl<N, T> ForEach<N, PointN<N>> for AmbientExtent<N, T>
where T: Clone, PointN<N>: IntegerPoint<N>,

Source§

type Item = T