Struct tak::piece::Piece [] [src]

pub struct Piece {
    pub stone: Stone,
    pub owner: Player,
}

Fields

stone: Stone owner: Player

Methods

impl Piece
[src]

fn move_onto(&self, base: &mut Piece) -> Result<(), &str>

Trait Implementations

impl Debug for Piece
[src]

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

Formats the value using the given formatter.

impl Copy for Piece
[src]

impl Clone for Piece
[src]

fn clone(&self) -> Piece

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 Display for Piece
[src]

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

Formats the value using the given formatter.

impl FromStr for Piece
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more