GetMut

Trait GetMut 

Source
pub trait GetMut<'a, L> {
    type Item;

    // Required method
    fn get_mut(&'a mut self, location: L) -> Self::Item;
}

Required Associated Types§

Required Methods§

Source

fn get_mut(&'a mut self, location: L) -> Self::Item

Get a mutable reference to the value at location.

Implementations on Foreign Types§

Source§

impl<'a, Coord, A> GetMut<'a, Coord> for (A,)
where Coord: Copy, A: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item,)

Source§

fn get_mut(&'a mut self, offset: Coord) -> <(A,) as GetMut<'a, Coord>>::Item

Source§

impl<'a, Coord, A, B> GetMut<'a, Coord> for (A, B)
where Coord: Copy, A: GetMut<'a, Coord>, B: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item, <B as GetMut<'a, Coord>>::Item)

Source§

fn get_mut(&'a mut self, offset: Coord) -> <(A, B) as GetMut<'a, Coord>>::Item

Source§

impl<'a, Coord, A, B, C> GetMut<'a, Coord> for (A, B, C)
where Coord: Copy, A: GetMut<'a, Coord>, B: GetMut<'a, Coord>, C: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item, <B as GetMut<'a, Coord>>::Item, <C as GetMut<'a, Coord>>::Item)

Source§

fn get_mut( &'a mut self, offset: Coord, ) -> <(A, B, C) as GetMut<'a, Coord>>::Item

Source§

impl<'a, Coord, A, B, C, D> GetMut<'a, Coord> for (A, B, C, D)
where Coord: Copy, A: GetMut<'a, Coord>, B: GetMut<'a, Coord>, C: GetMut<'a, Coord>, D: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item, <B as GetMut<'a, Coord>>::Item, <C as GetMut<'a, Coord>>::Item, <D as GetMut<'a, Coord>>::Item)

Source§

fn get_mut( &'a mut self, offset: Coord, ) -> <(A, B, C, D) as GetMut<'a, Coord>>::Item

Source§

impl<'a, Coord, A, B, C, D, E> GetMut<'a, Coord> for (A, B, C, D, E)
where Coord: Copy, A: GetMut<'a, Coord>, B: GetMut<'a, Coord>, C: GetMut<'a, Coord>, D: GetMut<'a, Coord>, E: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item, <B as GetMut<'a, Coord>>::Item, <C as GetMut<'a, Coord>>::Item, <D as GetMut<'a, Coord>>::Item, <E as GetMut<'a, Coord>>::Item)

Source§

fn get_mut( &'a mut self, offset: Coord, ) -> <(A, B, C, D, E) as GetMut<'a, Coord>>::Item

Source§

impl<'a, Coord, A, B, C, D, E, F> GetMut<'a, Coord> for (A, B, C, D, E, F)
where Coord: Copy, A: GetMut<'a, Coord>, B: GetMut<'a, Coord>, C: GetMut<'a, Coord>, D: GetMut<'a, Coord>, E: GetMut<'a, Coord>, F: GetMut<'a, Coord>,

Source§

type Item = (<A as GetMut<'a, Coord>>::Item, <B as GetMut<'a, Coord>>::Item, <C as GetMut<'a, Coord>>::Item, <D as GetMut<'a, Coord>>::Item, <E as GetMut<'a, Coord>>::Item, <F as GetMut<'a, Coord>>::Item)

Source§

fn get_mut( &'a mut self, offset: Coord, ) -> <(A, B, C, D, E, F) as GetMut<'a, Coord>>::Item

Source§

impl<'b, 'a, L, T> GetMut<'a, L> for &'b mut T
where T: 'b + GetMut<'a, L> + ?Sized,

Source§

type Item = <T as GetMut<'a, L>>::Item

Source§

fn get_mut(&'a mut self, location: L) -> <&'b mut T as GetMut<'a, L>>::Item

Implementors§

Source§

impl<'a, Delegate, N, T, Bldr, Store, Mut> GetMut<'a, PointN<N>> for ChunkMapLodView<Delegate>
where T: 'a, Delegate: DerefMut<Target = ChunkMap<N, T, Bldr, Store>>, PointN<N>: IntegerPoint<N>, Bldr: 'a + ChunkMapBuilder<N, T>, <<Bldr as ChunkMapBuilder<N, T>>::Chunk as Chunk>::Array: GetMut<'a, PointN<N>, Item = Mut>, Store: 'a + ChunkWriteStorage<N, <Bldr as ChunkMapBuilder<N, T>>::Chunk>,

Source§

type Item = Mut

Source§

impl<'a, N, Chan> GetMut<'a, Local<N>> for Array<N, Chan>
where Array<N, Chan>: IndexedArray<N> + GetMut<'a, Stride>, PointN<N>: Copy,

Source§

type Item = <Array<N, Chan> as GetMut<'a, Stride>>::Item

Source§

impl<'a, N, Chan> GetMut<'a, PointN<N>> for Array<N, Chan>
where Array<N, Chan>: IndexedArray<N> + GetMut<'a, Local<N>>, PointN<N>: Point,

Source§

type Item = <Array<N, Chan> as GetMut<'a, Local<N>>>::Item

Source§

impl<'a, N, Chan> GetMut<'a, Stride> for Array<N, Chan>
where Chan: GetMut<'a, usize>,

Source§

type Item = <Chan as GetMut<'a, usize>>::Item

Source§

impl<'a, T, Store> GetMut<'a, usize> for Channel<T, Store>
where T: 'a, Store: DerefMut<Target = [T]>,