GetRef

Trait GetRef 

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

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

Required Associated Types§

Required Methods§

Source

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

Get an immutable reference to the value at location.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

fn get_ref(&'a self, offset: Coord) -> <(A,) as GetRef<'a, Coord>>::Item

Source§

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

Source§

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

Source§

fn get_ref(&'a self, offset: Coord) -> <(A, B) as GetRef<'a, Coord>>::Item

Source§

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

Source§

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

Source§

fn get_ref(&'a self, offset: Coord) -> <(A, B, C) as GetRef<'a, Coord>>::Item

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn get_ref(&'a self, location: L) -> <&'b T as GetRef<'a, L>>::Item

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl<'a, Delegate, N, T, Bldr, Store, Ref> GetRef<'a, PointN<N>> for ChunkMapLodView<Delegate>
where T: 'a, Delegate: Deref<Target = ChunkMap<N, T, Bldr, Store>>, PointN<N>: IntegerPoint<N>, Bldr: 'a + ChunkMapBuilder<N, T>, <<Bldr as ChunkMapBuilder<N, T>>::Chunk as Chunk>::Array: GetRef<'a, PointN<N>, Item = Ref>, Store: 'a + ChunkReadStorage<N, <Bldr as ChunkMapBuilder<N, T>>::Chunk>, Ref: MultiRef<'a, Data = T>,

Source§

type Item = Ref

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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