[][src]Trait littlewing::piece::PieceAttr

pub trait PieceAttr {
    fn color(&self) -> Color;
fn kind(&self) -> Piece;
fn is_pawn(&self) -> bool;
fn is_knight(&self) -> bool;
fn is_bishop(&self) -> bool;
fn is_rook(&self) -> bool;
fn is_queen(&self) -> bool;
fn is_king(&self) -> bool; }

Required methods

fn color(&self) -> Color

Get the color of a piece

fn kind(&self) -> Piece

Get a piece without its color

fn is_pawn(&self) -> bool

fn is_knight(&self) -> bool

fn is_bishop(&self) -> bool

fn is_rook(&self) -> bool

fn is_queen(&self) -> bool

fn is_king(&self) -> bool

Loading content...

Implementors

impl PieceAttr for Piece[src]

Loading content...