Enum takuzu::Cell
[−]
[src]
pub enum Cell { Zero, One, Empty, }
An enum representing the state of a cell.
Variants
Zero
Stands for 0
.
One
Stands for 1
.
Empty
Empty cell.
Methods
impl Cell
[src]
fn is_empty(self) -> bool
Returns true
if a cell is Empty
.
fn is_filled(self) -> bool
Returns true
if a cell is Zero
or One
.
Trait Implementations
impl PartialEq for Cell
[src]
fn eq(&self, __arg_0: &Cell) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Cell
[src]
impl Debug for Cell
[src]
impl Copy for Cell
[src]
impl Clone for Cell
[src]
fn clone(&self) -> Cell
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more