Enum pleco::core::PieceType
[−]
[src]
#[repr(u8)]pub enum PieceType { K, Q, R, B, N, P, }
All possible Types of Pieces on a chessboard.
Variants
K
Q
R
B
N
P
Methods
impl PieceType
[src]
pub fn value(&self) -> i8
[src]
Returns the relative value of a piece.
Used for sorting moves.
pub fn char_lower(&self) -> char
[src]
Return the lowercase character of a Piece
.
pub fn char_upper(&self) -> char
[src]
Return the uppercase character of a Piece
.
Trait Implementations
impl Copy for PieceType
[src]
impl Clone for PieceType
[src]
fn clone(&self) -> PieceType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PieceType
[src]
fn eq(&self, __arg_0: &PieceType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for PieceType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more