pub enum View {
Covered,
Flag,
SteppedOnDud,
SteppedOnMine,
Clear {
adjacent_mines: u8,
},
Mine,
}Expand description
View state of a field.
Variants§
Covered
The field has not been visited yet and is covered.
Flag
The field is flagged.
SteppedOnDud
The player stepped onto a dud.
SteppedOnMine
The player stepped onto a live mine.
Clear
The field is clear.
Mine
The field contains a mine.
Implementations§
Trait Implementations§
impl Copy for View
impl Eq for View
impl StructuralPartialEq for View
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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