Struct board_game_geom::Table
source · [−]pub struct Table<T> { /* private fields */ }
Expand description
A table that stores values for each cells.
Implementations
Trait Implementations
sourceimpl<T> Geom for Table<T>
impl<T> Geom for Table<T>
sourcefn point_to_cellid(&self, p: Point) -> CellId
fn point_to_cellid(&self, p: Point) -> CellId
Convert a point to a corresponding cell ID.
sourcefn cellid_to_point(&self, id: CellId) -> Point
fn cellid_to_point(&self, id: CellId) -> Point
Convert a cell ID to a corresponding point.
sourcefn points(&self) -> PointsⓘNotable traits for Pointsimpl Iterator for Points type Item = Point;
fn points(&self) -> PointsⓘNotable traits for Pointsimpl Iterator for Points type Item = Point;
Returns an iterator iterating all points.
sourcefn points_in_row(&self, row: i32) -> PointsInRowⓘNotable traits for PointsInRowimpl Iterator for PointsInRow type Item = Point;
fn points_in_row(&self, row: i32) -> PointsInRowⓘNotable traits for PointsInRowimpl Iterator for PointsInRow type Item = Point;
Returns an iterator iterating all points in the row.
sourcefn points_in_column(&self, column: i32) -> PointsInColumnⓘNotable traits for PointsInColumnimpl Iterator for PointsInColumn type Item = Point;
fn points_in_column(&self, column: i32) -> PointsInColumnⓘNotable traits for PointsInColumnimpl Iterator for PointsInColumn type Item = Point;
Returns an iterator iterating all points in the column.
impl<T: Eq> Eq for Table<T>
impl<T> StructuralEq for Table<T>
impl<T> StructuralPartialEq for Table<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Table<T> where
T: RefUnwindSafe,
impl<T> Send for Table<T> where
T: Send,
impl<T> Sync for Table<T> where
T: Sync,
impl<T> Unpin for Table<T> where
T: Unpin,
impl<T> UnwindSafe for Table<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more