Get

Trait Get 

Source
pub trait Get<L> {
    type Item;

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

Required Associated Types§

Required Methods§

Source

fn get(&self, location: L) -> Self::Item

Get an owned value at location.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

fn get(&self, location: L) -> <&'a T as Get<L>>::Item

Source§

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

Source§

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

Source§

fn get(&self, location: L) -> <&'a mut T as Get<L>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A,) as Get<Coord>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A, B) as Get<Coord>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A, B, C) as Get<Coord>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A, B, C, D) as Get<Coord>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A, B, C, D, E) as Get<Coord>>::Item

Source§

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

Source§

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

Source§

fn get(&self, offset: Coord) -> <(A, B, C, D, E, F) as Get<Coord>>::Item

Implementors§

Source§

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

Source§

type Item = Out

Source§

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

Source§

type Item = T

Source§

impl<F, T, Coord> Get<Coord> for Func<F>
where F: Fn(Coord) -> T,

Source§

type Item = T

Source§

impl<L, T, Store> Get<L> for Channel<T, Store>
where Channel<T, Store>: for<'r> GetRef<'r, L, Item = &'r T>, T: Clone,

Source§

type Item = T

Source§

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

Source§

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

Source§

impl<N, Chan> Get<PointN<N>> for Array<N, Chan>
where Array<N, Chan>: IndexedArray<N> + Get<Local<N>>, PointN<N>: Point,

Source§

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

Source§

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

Source§

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