GetMutPtr

Trait GetMutPtr 

Source
pub trait GetMutPtr<L> {
    type Item;

    // Required method
    unsafe fn get_mut_ptr(&mut self, location: L) -> Self::Item;
}

Required Associated Types§

Required Methods§

Source

unsafe fn get_mut_ptr(&mut self, location: L) -> Self::Item

Get a mutable pointer to the value at location.

Implementations on Foreign Types§

Source§

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

Source§

type Item = <T as GetMutPtr<L>>::Item

Source§

unsafe fn get_mut_ptr( &mut self, location: L, ) -> <&'a mut T as GetMutPtr<L>>::Item

Source§

impl<Coord, A> GetMutPtr<Coord> for (A,)
where Coord: Copy, A: GetMutPtr<Coord>,

Source§

type Item = (<A as GetMutPtr<Coord>>::Item,)

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A,) as GetMutPtr<Coord>>::Item

Source§

impl<Coord, A, B> GetMutPtr<Coord> for (A, B)
where Coord: Copy, A: GetMutPtr<Coord>, B: GetMutPtr<Coord>,

Source§

type Item = (<A as GetMutPtr<Coord>>::Item, <B as GetMutPtr<Coord>>::Item)

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A, B) as GetMutPtr<Coord>>::Item

Source§

impl<Coord, A, B, C> GetMutPtr<Coord> for (A, B, C)
where Coord: Copy, A: GetMutPtr<Coord>, B: GetMutPtr<Coord>, C: GetMutPtr<Coord>,

Source§

type Item = (<A as GetMutPtr<Coord>>::Item, <B as GetMutPtr<Coord>>::Item, <C as GetMutPtr<Coord>>::Item)

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A, B, C) as GetMutPtr<Coord>>::Item

Source§

impl<Coord, A, B, C, D> GetMutPtr<Coord> for (A, B, C, D)
where Coord: Copy, A: GetMutPtr<Coord>, B: GetMutPtr<Coord>, C: GetMutPtr<Coord>, D: GetMutPtr<Coord>,

Source§

type Item = (<A as GetMutPtr<Coord>>::Item, <B as GetMutPtr<Coord>>::Item, <C as GetMutPtr<Coord>>::Item, <D as GetMutPtr<Coord>>::Item)

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A, B, C, D) as GetMutPtr<Coord>>::Item

Source§

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

Source§

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

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A, B, C, D, E) as GetMutPtr<Coord>>::Item

Source§

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

Source§

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

Source§

unsafe fn get_mut_ptr( &mut self, offset: Coord, ) -> <(A, B, C, D, E, F) as GetMutPtr<Coord>>::Item

Implementors§

Source§

impl<N, Chan> GetMutPtr<Stride> for Array<N, Chan>
where Chan: GetMutPtr<usize>,

Source§

type Item = <Chan as GetMutPtr<usize>>::Item

Source§

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