Expand description
Entity a structure which represent a set of cells.
Variants
Global
All cells on the grid.
Column(usize)
All cells in a column on the grid.
Row(usize)
All cells in a row on the grid.
Cell(usize, usize)
A particular cell (row, column) on the grid.
Implementations
sourceimpl Entity
impl Entity
sourcepub fn iter(&self, count_rows: usize, count_cols: usize) -> EntityIteratorⓘNotable traits for EntityIteratorimpl Iterator for EntityIterator type Item = Position;
pub fn iter(&self, count_rows: usize, count_cols: usize) -> EntityIteratorⓘNotable traits for EntityIteratorimpl Iterator for EntityIterator type Item = Position;
Iterate over cells which are covered via the Entity
.
Trait Implementations
impl Copy for Entity
impl Eq for Entity
impl StructuralEq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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