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]
pub fn by_role(&self, role: Role) -> u8
[src]
pub fn by_role_mut(&mut self, role: Role) -> &mut u8
[src]
pub fn count(&self) -> u8
[src]
Trait Implementations
impl Clone for Pocket
[src]
fn clone(&self) -> Pocket
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Pocket
[src]
impl PartialEq for Pocket
[src]
fn eq(&self, __arg_0: &Pocket) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pocket) -> bool
[src]
This method tests for !=
.
impl Debug for Pocket
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more