Struct mastermind::Peg [−][src]
pub struct Peg { /* fields omitted */ }
Methods
impl Peg
[src]
impl Peg
pub fn new(color: Color) -> Peg
[src]
pub fn new(color: Color) -> Peg
pub fn new_random() -> Peg
[src]
pub fn new_random() -> Peg
pub fn color(&self) -> Color
[src]
pub fn color(&self) -> Color
pub fn found(&self) -> bool
[src]
pub fn found(&self) -> bool
pub fn find(&mut self)
[src]
pub fn find(&mut self)
Trait Implementations
impl Clone for Peg
[src]
impl Clone for Peg
fn clone(&self) -> Peg
[src]
fn clone(&self) -> Peg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Peg
[src]
impl PartialEq for Peg
fn eq(&self, other: &Peg) -> bool
[src]
fn eq(&self, other: &Peg) -> 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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for Peg
[src]
impl Debug for Peg
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Peg
[src]
impl Display for Peg
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<Peg> for char
[src]
impl Into<Peg> for char