pub struct Cell {
pub is_mine: bool,
pub state: CellState,
pub adjacent_mines: u8,
}Expand description
A single cell on the Minesweeper board.
Fields§
§is_mine: boolWhether this cell contains a mine.
state: CellStateCurrent visibility state of the cell.
adjacent_mines: u8Number of mines in the 8 neighboring cells (0 if this cell is a mine).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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