Enum libcoinche::pos::PlayerPos [] [src]

pub enum PlayerPos {
    P0,
    P1,
    P2,
    P3,
}

A position in the table

Variants

Player 0

Player 1

Player 2

Player 3

Methods

impl PlayerPos
[src]

Returns the player's team

Returns the position corresponding to the number (0 => P0, ...).

Panics if n > 3.

Returns true if self and other and in the same team

Returns the next player in line

Returns the player n seats further

Returns the previous player.

Returns an iterator that iterates on n players, including this one.

Returns the number of turns after self to reach other.

Returns an iterator until the given player (self included, other excluded)

Trait Implementations

impl PartialEq for PlayerPos
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for PlayerPos
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PlayerPos
[src]

impl Debug for PlayerPos
[src]

Formats the value using the given formatter.