[−][src]Struct building_blocks_storage::transform_map::TransformMap
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]
Trait Implementations
impl<'a, N, M, F> Array<N> for TransformMap<'a, M, F> where
M: Array<N>,
[src]
M: Array<N>,
type Indexer = M::Indexer
fn extent(&self) -> &ExtentN<N>
[src]
fn for_each_point_and_stride(
&self,
extent: &ExtentN<N>,
f: impl FnMut(PointN<N>, Stride)
)
[src]
&self,
extent: &ExtentN<N>,
f: impl FnMut(PointN<N>, Stride)
)
fn stride_from_local_point(&self, p: &Local<N>) -> Stride
[src]
fn strides_from_local_points(&self, points: &[Local<N>], strides: &mut [Stride])
[src]
impl<'a, M, F> Clone for TransformMap<'a, M, F> where
F: Clone,
[src]
F: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, M, F> Copy for TransformMap<'a, M, F> where
F: Copy,
[src]
F: Copy,
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]
F: Fn(T) -> S,
M: ForEach<N, Coord, 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]
F: Fn(T) -> S,
M: Get<Coord, Data = T>,
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]
F: Fn(T) -> S,
M: GetUnchecked<Coord, Data = T>,
type Data = S
unsafe fn get_unchecked(&self, c: Coord) -> S
[src]
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]
Self: Array<N> + Copy,
F: 'a + Fn(S) -> T,
PointN<N>: IntegerPoint,
type Src = ArrayCopySrc<Self>
type SrcIter = Once<(ExtentN<N>, Self::Src)>
fn read_extent(&'a self, extent: &ExtentN<N>) -> Self::SrcIter
[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]
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>,
type Src = TransformChunkCopySrc<'a, F, S, N, T>
type SrcIter = TransformChunkCopySrcIter<'a, F, S, N, T>
fn read_extent(&'a self, extent: &ExtentN<N>) -> Self::SrcIter
[src]
Auto Trait Implementations
impl<'a, M, F> RefUnwindSafe for TransformMap<'a, M, F> where
F: RefUnwindSafe,
M: RefUnwindSafe,
F: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, M, F> Send for TransformMap<'a, M, F> where
F: Send,
M: Sync,
F: Send,
M: Sync,
impl<'a, M, F> Sync for TransformMap<'a, M, F> where
F: Sync,
M: Sync,
F: Sync,
M: Sync,
impl<'a, M, F> Unpin for TransformMap<'a, M, F> where
F: Unpin,
F: Unpin,
impl<'a, M, F> UnwindSafe for TransformMap<'a, M, F> where
F: UnwindSafe,
M: RefUnwindSafe,
F: UnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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]
F: Fn(&PointN<N>) -> T,
PointN<N>: Copy,
ExtentN<N>: IntegerExtent<N>,
type Data = T
pub fn for_each(
&Self,
&ExtentN<N>,
impl FnMut(PointN<N>, <F as ForEach<N, PointN<N>>>::Data)
)
[src]
&Self,
&ExtentN<N>,
impl FnMut(PointN<N>, <F as ForEach<N, PointN<N>>>::Data)
)
impl<T> From<T> for T
[src]
impl<F, T, Coord> Get<Coord> for F where
F: Fn(Coord) -> T,
[src]
F: Fn(Coord) -> T,
impl<M, L, T> GetUncheckedRelease<L, T> for M where
M: Get<L, Data = T> + GetUnchecked<L, Data = T>,
[src]
M: Get<L, Data = T> + GetUnchecked<L, Data = T>,
fn get_unchecked_release(&self, location: L) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, F, N, T> ReadExtent<'a, N> for F where
F: 'a + Fn(&PointN<N>) -> T,
ExtentN<N>: Copy,
PointN<N>: Point,
[src]
F: 'a + Fn(&PointN<N>) -> T,
ExtentN<N>: Copy,
PointN<N>: Point,
type Src = &'a F
type SrcIter = Once<(ExtentN<N>, <F as ReadExtent<'a, N>>::Src)>
pub fn read_extent(&'a Self, &ExtentN<N>) -> <F as ReadExtent<'a, N>>::SrcIter
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,