pub struct PointDownsampler;Expand description
A ChunkDownsampler that just selects a single point from each 2x2x2 (assuming lod_delta=1) region, ignoring the rest.
Trait Implementations§
Source§impl<N, Src, Dst, T> ChunkDownsampler<N, T, Src, Dst> for PointDownsamplerwhere
N: ArrayIndexer<N>,
PointN<N>: IntegerPoint<N>,
Src: Get<Stride, Item = T> + IndexedArray<N>,
Dst: for<'r> GetMut<'r, Stride, Item = &'r mut T>,
impl<N, Src, Dst, T> ChunkDownsampler<N, T, Src, Dst> for PointDownsamplerwhere
N: ArrayIndexer<N>,
PointN<N>: IntegerPoint<N>,
Src: Get<Stride, Item = T> + IndexedArray<N>,
Dst: for<'r> GetMut<'r, Stride, Item = &'r mut T>,
Auto Trait Implementations§
impl Freeze for PointDownsampler
impl RefUnwindSafe for PointDownsampler
impl Send for PointDownsampler
impl Sync for PointDownsampler
impl Unpin for PointDownsampler
impl UnwindSafe for PointDownsampler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more