Enum pgn_reader::Color
[−]
[src]
pub enum Color { Black, White, }
White
or Black
.
Variants
Black
White
Methods
impl Color
[src]
fn from_char(ch: char) -> Option<Color>
[src]
fn from_bool(white: bool) -> Color
[src]
fn fold<T>(self, white: T, black: T) -> T
[src]
fn is_white(self) -> bool
[src]
fn is_black(self) -> bool
[src]
fn char(self) -> char
[src]
const fn pawn(self) -> Piece
[src]
const fn knight(self) -> Piece
[src]
const fn bishop(self) -> Piece
[src]
const fn rook(self) -> Piece
[src]
const fn queen(self) -> Piece
[src]
const fn king(self) -> Piece
[src]
Trait Implementations
impl Copy for Color
[src]
impl Not for Color
[src]
impl Clone for Color
[src]
fn clone(&self) -> Color
[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<Color> for Color
[src]
fn eq(&self, __arg_0: &Color) -> 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 Color
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.