GridIdx

Trait GridIdx 

Source
pub trait GridIdx {
    // Required methods
    fn no_row(&self) -> usize;
    fn no_column(&self) -> usize;
}
Expand description

trait that is used for indexing the 2d array

Required Methods§

Source

fn no_row(&self) -> usize

Source

fn no_column(&self) -> usize

Implementations on Foreign Types§

Source§

impl GridIdx for (usize, usize)

Source§

fn no_row(&self) -> usize

Source§

fn no_column(&self) -> usize

Source§

impl GridIdx for [usize; 2]

Source§

fn no_row(&self) -> usize

Source§

fn no_column(&self) -> usize

Implementors§