pub type Position = (usize, usize);
Expand description
Position is a (row, col) position on a Grid.
For example such table has 4 cells. Which indexes are (0, 0), (0, 1), (1, 0), (1, 1).
┌───┬───┐
│ 0 │ 1 │
├───┼───┤
│ 1 │ 2 │
└───┴───┘
Trait Implementations§
source§impl<I> Object<I> for Position
Available on crate feature std
only.
impl<I> Object<I> for Position
Available on crate feature
std
only.§type Iter = EntityOnce
type Iter = EntityOnce
An
Iterator
which returns a list of cells.source§fn and<O>(self, rhs: O) -> UnionCombination<Self, O, R>where
Self: Sized,
fn and<O>(self, rhs: O) -> UnionCombination<Self, O, R>where
Self: Sized,
Combines cells.
It doesn’t repeat cells.
source§fn not<O>(self, rhs: O) -> DiffCombination<Self, O, R>where
Self: Sized,
fn not<O>(self, rhs: O) -> DiffCombination<Self, O, R>where
Self: Sized,
Excludes rhs cells from this cells.