pub type Ix = u32;
Expand description
Array index type
Trait Implementations§
source§impl Dimension for Ix
impl Dimension for Ix
source§fn stride_offset_checked(&self, stride: &Ix, index: &Ix) -> Option<isize>
fn stride_offset_checked(&self, stride: &Ix, index: &Ix) -> Option<isize>
Return stride offset for this dimension and index.
fn ndim(&self) -> usize
fn size(&self) -> usize
fn first_index(&self) -> Option<Ix>
source§fn next_for(&self, index: Ix) -> Option<Ix>
fn next_for(&self, index: Ix) -> Option<Ix>
Iteration – Use self as size, and return next index after
index
or None if there are no more.