Trait building_blocks::prelude::ReadExtent [−][src]
pub trait ReadExtent<'a, N> {
type Src;
type SrcIter: Iterator;
fn read_extent(&'a self, extent: &ExtentN<N>) -> Self::SrcIter;
}
Expand description
A trait to facilitate the generic implementation of copy_extent
.
Some lattice maps, like ChunkMap
, have nonlinear layouts. This means that, in order for a writer to receive data
efficiently, it must come as an iterator over multiple extents.
Associated Types
Required methods
fn read_extent(&'a self, extent: &ExtentN<N>) -> Self::SrcIter
fn read_extent(&'a self, extent: &ExtentN<N>) -> Self::SrcIter
SrcIter
must return extents that are subsets of extent
.