pub enum SpotState {
HiddenEmpty {
neighboring_mines: u8,
},
HiddenMine,
FlaggedEmpty {
neighboring_mines: u8,
},
FlaggedMine,
RevealedEmpty {
neighboring_mines: u8,
},
ExplodedMine,
}
Expand description
State of the spot in a minefield
Variants§
HiddenEmpty
This spot has not been visited
HiddenMine
This is a hidden mine
FlaggedEmpty
This spot is empty, but was flagged as a mine
FlaggedMine
This spot contains a mine which was correctly flagged
RevealedEmpty
This spot is empty and was correctly revealed
ExplodedMine
This spot contains a mine and was incorrectly revealed
Trait Implementations§
impl Copy for SpotState
impl Eq for SpotState
impl StructuralPartialEq for SpotState
Auto Trait Implementations§
impl Freeze for SpotState
impl RefUnwindSafe for SpotState
impl Send for SpotState
impl Sync for SpotState
impl Unpin for SpotState
impl UnwindSafe for SpotState
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