ForEachMut

Trait ForEachMut 

Source
pub trait ForEachMut<'a, N, Coord> {
    type Item;

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

Required Associated Types§

Required Methods§

Source

fn for_each_mut( &'a mut 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<'b, 'a, N, Coord, T> ForEachMut<'a, N, Coord> for &'b mut T
where T: 'b + ForEachMut<'a, N, Coord> + ?Sized,

Source§

type Item = <T as ForEachMut<'a, N, Coord>>::Item

Source§

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

Implementors§

Source§

impl<'a, Delegate, N, Mut, MutPtr> ForEachMut<'a, N, PointN<N>> for ChunkMapLodView<Delegate>
where ChunkMapLodView<Delegate>: ForEachMutPtr<N, PointN<N>, Item = MutPtr>, MutPtr: IntoMultiMut<'a, MultiMut = Mut>,

Source§

type Item = Mut

Source§

impl<'a, N, Chan> ForEachMut<'a, N, (PointN<N>, Stride)> for Array<N, Chan>
where Array<N, Chan>: ForEachMutPtr<N, (PointN<N>, Stride), Item = <Chan as Channels>::Ptr>, Chan: Channels, <Chan as Channels>::Ptr: IntoMultiMut<'a>,

Source§

type Item = <<Chan as Channels>::Ptr as IntoMultiMut<'a>>::MultiMut

Source§

impl<'a, N, Chan> ForEachMut<'a, N, ()> for Array<N, Chan>
where Array<N, Chan>: ForEachMutPtr<N, (), Item = <Chan as Channels>::Ptr>, Chan: Channels, <Chan as Channels>::Ptr: IntoMultiMut<'a>,

Source§

type Item = <<Chan as Channels>::Ptr as IntoMultiMut<'a>>::MultiMut

Source§

impl<'a, N, Chan> ForEachMut<'a, N, PointN<N>> for Array<N, Chan>
where Array<N, Chan>: ForEachMutPtr<N, PointN<N>, Item = <Chan as Channels>::Ptr>, Chan: Channels, <Chan as Channels>::Ptr: IntoMultiMut<'a>,

Source§

type Item = <<Chan as Channels>::Ptr as IntoMultiMut<'a>>::MultiMut

Source§

impl<'a, N, Chan> ForEachMut<'a, N, Stride> for Array<N, Chan>
where Array<N, Chan>: ForEachMutPtr<N, Stride, Item = <Chan as Channels>::Ptr>, Chan: Channels, <Chan as Channels>::Ptr: IntoMultiMut<'a>,

Source§

type Item = <<Chan as Channels>::Ptr as IntoMultiMut<'a>>::MultiMut