[][src]Trait gridly::grid::GridBounds

pub trait GridBounds {
    fn dimensions(&self) -> Vector;

    fn root(&self) -> Location { ... }
}

High-level trait implementing grid sizes and boundary checking.

This trait doesn't provide any direct grid functionality, but instead provides the bounds checking which is generic to all of the different kinds of grid.

Note for implementors:

Required methods

fn dimensions(&self) -> Vector

Get the dimensions of the grid, as a Vector. This value MUST be const for any given grid.

Loading content...

Provided methods

fn root(&self) -> Location

Return the root location (ie, the top left) of the grid. For most grids, this is (0, 0), but some grids may include negatively indexed locations, or even offsets. This value MUST be const for any given grid.

Loading content...

Implementations on Foreign Types

impl<'a, G: GridBounds + ?Sized> GridBounds for &'a G[src]

impl<'a, G: GridBounds + ?Sized> GridBounds for &'a mut G[src]

Loading content...

Implementors

impl<G: GridBounds> GridBounds for Transpose<G>[src]

Loading content...