pub trait ReadExtent<'a, N> {
type Src;
type SrcIter: Iterator<Item = (ExtentN<N>, Self::Src)>;
// Required method
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.
Required Associated Types§
Required Methods§
Sourcefn 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.