[][src]Trait building_blocks::prelude::WriteExtent

pub trait WriteExtent<N, Src> {
    fn write_extent(&mut self, extent: &ExtentN<N>, src: Src);
}

A trait to facilitate the generic implementation of copy_extent.

Required methods

fn write_extent(&mut self, extent: &ExtentN<N>, src: Src)

Loading content...

Implementations on Foreign Types

impl<'a, N, T, M, Src> WriteExtent<N, Src> for ChunkMap<N, T, M> where
    M: Clone,
    Src: Copy,
    T: Copy,
    PointN<N>: Point,
    PointN<N>: Eq,
    PointN<N>: Hash,
    ExtentN<N>: IntegerExtent<N>,
    ArrayN<N, T>: WriteExtent<N, Src>, 
[src]

Loading content...

Implementors

impl<'a, N, F, T> WriteExtent<N, F> for ArrayN<N, T> where
    F: Fn(&PointN<N>) -> T,
    T: 'a + Clone,
    PointN<N>: IntegerPoint,
    ExtentN<N>: IntegerExtent<N>,
    ArrayN<N, T>: ForEachMut<N, PointN<N>>,
    <ArrayN<N, T> as ForEachMut<N, PointN<N>>>::Data == T, 
[src]

impl<'a, N, T> WriteExtent<N, ArrayCopySrc<&'a ArrayN<N, T>>> for ArrayN<N, T> where
    T: Clone,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: GetUncheckedRelease<Stride, T>,
    PointN<N>: IntegerPoint,
    ExtentN<N>: Copy
[src]

impl<'a, N, T, M, F> WriteExtent<N, ArrayCopySrc<TransformMap<'a, M, F>>> for ArrayN<N, T> where
    T: Clone,
    ArrayN<N, T>: Array<N>,
    TransformMap<'a, M, F>: Array<N>,
    TransformMap<'a, M, F>: GetUncheckedRelease<Stride, T>,
    PointN<N>: IntegerPoint,
    ExtentN<N>: Copy
[src]

impl<M, N, T> WriteExtent<N, Either<ArrayCopySrc<M>, AmbientExtent<N, T>>> for ArrayN<N, T> where
    T: Clone,
    ArrayN<N, T>: Array<N>,
    ArrayN<N, T>: WriteExtent<N, ArrayCopySrc<M>>,
    ExtentN<N>: Copy,
    ExtentN<N>: IntegerExtent<N>,
    ExtentN<N>: PartialEq<ExtentN<N>>, 
[src]

Loading content...