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 Encodable for Team
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Team
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Team, __D::Error>

impl Debug for Team
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Team
[src]

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

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 !=.