pub trait GridTrait<T>: Clone + Debug + Send + Syncwhere
    T: Copy,
{ fn get_borders(&self) -> &Array1<T>; fn idx(&self, x: T) -> CellIndex; fn cell_count(&self) -> usize { ... } fn get_start(&self) -> T { ... } fn get_end(&self) -> T { ... } }
Expand description

Grid trait for dm or dt axis

Required Methods§

Cell borders coordinates, cell_count() + 1 length Array1

Get index of the cell containing given value

Note that cells include their left borders but doesn’t include right borders

Provided Methods§

Number of cells

Coordinate of the left border of the leftmost cell

Coordinate of the right border of the rightmost cell

Implementors§