pub trait TIndex {
// Required methods
fn inc_ro(&mut self, shape: &[usize]);
fn dec_ro(&mut self, shape: &[usize]);
fn inc_co(&mut self, shape: &[usize]);
fn dec_co(&mut self, shape: &[usize]);
fn is_zero(&mut self) -> bool;
fn to_pos(&self, shape: &[usize], strides: &[usize]) -> usize;
}Expand description
A trait which adds indexing functions to simplify index manipulation.