Trait building_blocks::prelude::FillExtent [−][src]
pub trait FillExtent<N> {
type Item;
fn fill_extent(&mut self, extent: &ExtentN<N>, value: Self::Item);
}
Associated Types
Required methods
fn fill_extent(&mut self, extent: &ExtentN<N>, value: Self::Item)
Implementations on Foreign Types
impl<N, Chan> FillExtent<N> for Array<N, Chan> where
Chan: ResetChannels,
Array<N, Chan>: ForEachMutPtr<N, ()>,
PointN<N>: IntegerPoint<N>,
<Chan as Channels>::Data: Clone,
<Array<N, Chan> as ForEachMutPtr<N, ()>>::Item == <Chan as Channels>::Ptr,
impl<N, Chan> FillExtent<N> for Array<N, Chan> where
Chan: ResetChannels,
Array<N, Chan>: ForEachMutPtr<N, ()>,
PointN<N>: IntegerPoint<N>,
<Chan as Channels>::Data: Clone,
<Array<N, Chan> as ForEachMutPtr<N, ()>>::Item == <Chan as Channels>::Ptr,
pub fn fill_extent(
&mut self,
extent: &ExtentN<N>,
value: <Array<N, Chan> as FillExtent<N>>::Item
)
pub fn fill_extent(
&mut self,
extent: &ExtentN<N>,
value: <Array<N, Chan> as FillExtent<N>>::Item
)
Fill the entire extent
with the same value
.
impl<Delegate, N, T, MutPtr> FillExtent<N> for ChunkMapLodView<Delegate> where
T: Clone,
MutPtr: MultiMutPtr<Data = T>,
ChunkMapLodView<Delegate>: ForEachMutPtr<N, PointN<N>>,
<ChunkMapLodView<Delegate> as ForEachMutPtr<N, PointN<N>>>::Item == MutPtr,
impl<Delegate, N, T, MutPtr> FillExtent<N> for ChunkMapLodView<Delegate> where
T: Clone,
MutPtr: MultiMutPtr<Data = T>,
ChunkMapLodView<Delegate>: ForEachMutPtr<N, PointN<N>>,
<ChunkMapLodView<Delegate> as ForEachMutPtr<N, PointN<N>>>::Item == MutPtr,
Fill all of extent
with the same value
.