Enum libcoinche::pos::Team
[−]
[src]
pub enum Team { T02, T13, }
One of two teams
Variants
T02
Players P0 and P2
T13
Players P1 and P3
Methods
impl Team
[src]
fn from_n(n: usize) -> Self
Return the team corresponding to the given number.
fn opponent(self) -> Team
Returns the other team
Trait Implementations
impl PartialEq for Team
[src]
fn eq(&self, __arg_0: &Team) -> 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 Clone for Team
[src]
fn clone(&self) -> Team
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