Grid

Trait Grid 

Source
pub trait Grid: Index<Point> {
    // Required method
    fn points(&self) -> Vec<Point>;
}
Expand description

Represents an n-dimensional grid of values, indexable via Point.

Required Methods§

Source

fn points(&self) -> Vec<Point>

Returns all points in the grid.

Useful for enumeration with Iterator::zip.

Implementors§