Struct shakmaty::Piece[][src]

pub struct Piece {
    pub color: Color,
    pub role: Role,
}

A piece with Color and Role.

Fields

Methods

impl Piece
[src]

Trait Implementations

impl Copy for Piece
[src]

impl Clone for Piece
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Piece
[src]

impl PartialEq for Piece
[src]

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

This method tests for !=.

impl Debug for Piece
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Piece

impl Sync for Piece