[][src]Struct building_blocks::prelude::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) -> TransformMap<'a, M, F>[src]

Trait Implementations

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

type Indexer = <M as Array<N>>::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, M> ReadExtent<'a, N> for TransformMap<'a, ChunkMapReader<'a, N, S, M>, F> where
    F: 'a + Copy + Fn(S) -> T,
    M: Clone,
    S: Copy,
    T: 'a,
    ChunkMapReader<'a, N, S, M>: ReadExtent<'a, N>,
    PointN<N>: Point,
    PointN<N>: Eq,
    PointN<N>: Hash,
    ExtentN<N>: IntegerExtent<N>,
    <ChunkMapReader<'a, N, S, M> as ReadExtent<'a, N>>::Src == Either<ArrayCopySrc<&'a ArrayN<N, S>>, AmbientExtent<N, S>>,
    <ChunkMapReader<'a, N, S, M> as ReadExtent<'a, N>>::SrcIter == IntoIter<(ExtentN<N>, Either<ArrayCopySrc<&'a ArrayN<N, S>>, AmbientExtent<N, S>>)>, 
[src]

type Src = Either<ArrayCopySrc<TransformMap<'a, ArrayN<N, S>, F>>, AmbientExtent<N, T>>

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

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

type Src = ArrayCopySrc<TransformMap<'a, ArrayN<N, S>, F>>

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

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<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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<T> Pointable for T

type Init = T

The type for initializers.

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> Same<T> for T

type Output = T

Should always be Self

impl<T> Slottable for T where
    T: Copy
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,