Struct shakmaty::Pocket
[−]
[src]
pub struct Pocket { pub pawns: u8, pub knights: u8, pub bishops: u8, pub rooks: u8, pub queens: u8, pub kings: u8, }
A players Crazyhouse pocket.
Fields
pawns: u8
knights: u8
bishops: u8
rooks: u8
queens: u8
kings: u8
Methods
impl Pocket
[src]
fn by_role(&self, role: Role) -> u8
fn by_role_mut(&mut self, role: Role) -> &mut u8
fn count(&self) -> u8
Trait Implementations
impl Clone for Pocket
[src]
fn clone(&self) -> Pocket
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
impl Eq for Pocket
[src]
impl PartialEq for Pocket
[src]
fn eq(&self, __arg_0: &Pocket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pocket) -> bool
This method tests for !=
.