pub struct OpenResult {
pub cell: Cell,
pub cells_opened: usize,
pub mines_exploded: usize,
pub flags_touched: usize,
}
Expand description
The result of opening a cell
.
Contains information about the content of the first opened cell, how many cells have been opened in total, how many mines have been found during the process, the number of flags touched while opening.
Fields§
§cell: Cell
§cells_opened: usize
§mines_exploded: usize
§flags_touched: usize
The number of times that the opening procedure tried to open a cell near to a flagged cell. This value may be a lot higher than the number of flagged cells, since the same flagged cell may be touched multiple times during the procedure.
Trait Implementations§
Source§impl Clone for OpenResult
impl Clone for OpenResult
Source§fn clone(&self) -> OpenResult
fn clone(&self) -> OpenResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenResult
impl Debug for OpenResult
Source§impl PartialEq for OpenResult
impl PartialEq for OpenResult
impl Copy for OpenResult
impl Eq for OpenResult
impl StructuralPartialEq for OpenResult
Auto Trait Implementations§
impl Freeze for OpenResult
impl RefUnwindSafe for OpenResult
impl Send for OpenResult
impl Sync for OpenResult
impl Unpin for OpenResult
impl UnwindSafe for OpenResult
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