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

fn from_n(n: usize) -> Self

Return the team corresponding to the given number.

fn opponent(self) -> Team

Returns the other team

Trait Implementations

Derived Implementations

impl Encodable for Team

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

impl Decodable for Team

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

impl Debug for Team

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

impl Copy for Team

impl Clone for Team

fn clone(&self) -> Team

fn clone_from(&mut self, source: &Self)

impl PartialEq for Team

fn eq(&self, __arg_0: &Team) -> bool

fn ne(&self, __arg_0: &Team) -> bool