[][src]Struct building_blocks_storage::transform_map::TransformMap

pub struct TransformMap<'a, M, F> { /* fields omitted */ }

A lattice map that delegates look-ups to a different lattice map, then transforms the result using some Fn(T) -> S.

Implementations

impl<'a, M, F> TransformMap<'a, M, F>[src]

pub fn new(delegate: &'a M, transform: F) -> Self[src]

Trait Implementations

impl<'a, N, M, F> Array<N> for TransformMap<'a, M, F> where
    M: Array<N>, 
[src]

type Indexer = M::Indexer

impl<'a, M, F> Clone for TransformMap<'a, M, F> where
    F: Clone
[src]

impl<'a, M, F> Copy for TransformMap<'a, M, F> where
    F: Copy
[src]

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

type Data = S

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<'a, M, F, T, S, Coord> GetUnchecked<Coord> for TransformMap<'a, M, F> where
    F: Fn(T) -> S,
    M: GetUnchecked<Coord, Data = T>, 
[src]

type Data = S

impl<'a, F, S, N, T> ReadExtent<'a, N> for TransformMap<'a, ArrayN<N, S>, F> where
    Self: Array<N> + Copy,
    F: 'a + Fn(S) -> T,
    PointN<N>: IntegerPoint
[src]

type Src = ArrayCopySrc<Self>

type SrcIter = Once<(ExtentN<N>, Self::Src)>

impl<'a, F, S, N, T, M> ReadExtent<'a, N> for TransformMap<'a, ChunkMapReader<'a, N, S, M>, F> where
    ChunkMapReader<'a, N, S, M>: ReadExtent<'a, N, Src = ArrayChunkCopySrc<'a, N, S>, SrcIter = ArrayChunkCopySrcIter<'a, N, S>>,
    F: 'a + Copy + Fn(S) -> T,
    S: Copy,
    T: 'a,
    M: Clone,
    PointN<N>: Point + Eq + Hash,
    ExtentN<N>: IntegerExtent<N>, 
[src]

type Src = TransformChunkCopySrc<'a, F, S, N, T>

type SrcIter = TransformChunkCopySrcIter<'a, F, S, N, T>

Auto Trait Implementations

impl<'a, M, F> RefUnwindSafe for TransformMap<'a, M, F> where
    F: RefUnwindSafe,
    M: RefUnwindSafe

impl<'a, M, F> Send for TransformMap<'a, M, F> where
    F: Send,
    M: Sync

impl<'a, M, F> Sync for TransformMap<'a, M, F> where
    F: Sync,
    M: Sync

impl<'a, M, F> Unpin for TransformMap<'a, M, F> where
    F: Unpin

impl<'a, M, F> UnwindSafe for TransformMap<'a, M, F> where
    F: UnwindSafe,
    M: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, F, N, T> ForEach<N, PointN<N>> for F where
    F: Fn(&PointN<N>) -> T,
    PointN<N>: Copy,
    ExtentN<N>: IntegerExtent<N>, 
[src]

type Data = T

impl<T> From<T> for T[src]

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

type Data = T

impl<M, L, T> GetUncheckedRelease<L, T> for M where
    M: Get<L, Data = T> + GetUnchecked<L, Data = T>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, F, N, T> ReadExtent<'a, N> for F where
    F: 'a + Fn(&PointN<N>) -> T,
    ExtentN<N>: Copy,
    PointN<N>: Point
[src]

type Src = &'a F

type SrcIter = Once<(ExtentN<N>, <F as ReadExtent<'a, N>>::Src)>

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.