[][src]Trait building_blocks::prelude::Get

pub trait Get<L> {
    type Data;
    fn get(&self, location: L) -> Self::Data;
}

Associated Types

type Data

Loading content...

Required methods

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

Get an owned value at location.

Loading content...

Implementations on Foreign Types

impl<'a, '_, N, T, M> Get<&'_ PointN<N>> for ChunkMapReader<'a, N, T, M> where
    M: Clone,
    T: Copy,
    PointN<N>: IntegerPoint,
    PointN<N>: ChunkShape<N>,
    PointN<N>: Eq,
    PointN<N>: Hash,
    ExtentN<N>: IntegerExtent<N>,
    ArrayN<N, T>: Array<N>, 
[src]

type Data = T

Loading content...

Implementors

impl<'_, N, T> Get<&'_ Local<N>> for ArrayN<N, T> where
    T: Clone,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: Get<Stride>,
    <ArrayN<N, T> as Get<Stride>>::Data == T, 
[src]

type Data = T

impl<'_, N, T> Get<&'_ PointN<N>> for ArrayN<N, T> where
    T: Clone,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: for<'r> Get<&'r Local<N>>,
    PointN<N>: Point,
    <ArrayN<N, T> as Get<&'r Local<N>>>::Data == T, 
[src]

type Data = T

impl<'a, M, F, T, S, Coord> Get<Coord> for TransformMap<'a, M, F> where
    F: Fn(T) -> S,
    M: Get<Coord, Data = T>, 
[src]

type Data = S

impl<F, T, Coord> Get<Coord> for F where
    F: Fn(Coord) -> T, 
[src]

type Data = T

impl<N, T> Get<Stride> for ArrayN<N, T> where
    T: Clone
[src]

type Data = T

Loading content...