pub enum Entity {
Global,
Column(usize),
Row(usize),
Cell(usize, usize),
}
Expand description
Entity a structure which represent a set of cells.
For example such table:
┌───┬───┐
│ 0 │ 1 │
├───┼───┤
│ 1 │ 2 │
└───┴───┘
-
has 4 cells. Which indexes are (0, 0), (0, 1), (1, 0), (1, 1).
-
has 2 rows. Which indexes are 0, 1.
-
has 2 column. Which indexes are 0, 1.
In Entity
terms, all cells on the grid we call Global
.
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§
Trait Implementations§
source§impl PartialEq for Entity
impl PartialEq for Entity
impl Copy for Entity
impl Eq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)