pub fn enumerate_range(&self, range: Range<(usize, usize)>)
        -> impl Iterator<Item = (usize, usize)>
    {
        let shape = self.shape;
        (self._index(range.start)..self._index(range.end)).map(move |index| {
            (index / shape.0, index % shape.1)
        })
    }
/// Iterate over 2D indexes in sequence.
///
/// For example:
Iterate over 2D indexes in sequence.
For example.
Iterate over 2D indexes in sequence . For example .
pub fn enumerate_range(&self, range: Range<(usize, usize)>)
        -> impl Iterator<Item = (usize, usize)>
    {
        let shape = self.shape;
        (self._index(range.start)..self._index(range.end)).map(move |index| {
            (index / shape.0, index % shape.1)
        })
    }
pub fn enumerate_range ( & self , range : Range < ( usize , usize ) > ) -> impl Iterator < Item = ( usize , usize ) > { let shape = self . shape ; ( self . _index ( range . start ) .. self . _index ( range . end ) ) . map ( move | index | { ( index / shape . 0 , index % shape . 1 ) } ) }
Iterate over 2D indexes in sequence.
Iterate over 2D indexes in sequence .
&self
range
Range<(usize, usize)>