Enum pgn_reader::Color [−][src]
pub enum Color {
Black,
White,
}White or Black.
Variants
BlackWhite
Methods
impl Color[src]
impl Colorpub fn from_char(ch: char) -> Option<Color>[src]
pub fn from_char(ch: char) -> Option<Color>pub fn from_white(white: bool) -> Color[src]
pub fn from_white(white: bool) -> Colorpub fn from_black(black: bool) -> Color[src]
pub fn from_black(black: bool) -> Colorpub fn fold<T>(self, white: T, black: T) -> T[src]
pub fn fold<T>(self, white: T, black: T) -> Tpub fn is_white(self) -> bool[src]
pub fn is_white(self) -> boolpub fn is_black(self) -> bool[src]
pub fn is_black(self) -> boolpub fn char(self) -> char[src]
pub fn char(self) -> charpub fn pawn(self) -> Piece[src]
pub fn pawn(self) -> Piecepub fn knight(self) -> Piece[src]
pub fn knight(self) -> Piecepub fn bishop(self) -> Piece[src]
pub fn bishop(self) -> Piecepub fn rook(self) -> Piece[src]
pub fn rook(self) -> Piecepub fn queen(self) -> Piece[src]
pub fn queen(self) -> Piecepub fn king(self) -> Piece[src]
pub fn king(self) -> PieceTrait Implementations
impl Clone for Color[src]
impl Clone for Colorfn clone(&self) -> Color[src]
fn clone(&self) -> ColorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Color[src]
impl Debug for Colorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl BitXor<bool> for Color[src]
impl BitXor<bool> for Colortype Output = Color
The resulting type after applying the ^ operator.
fn bitxor(self, flip: bool) -> Color[src]
fn bitxor(self, flip: bool) -> ColorPerforms the ^ operation.
impl Copy for Color[src]
impl Copy for Colorimpl Eq for Color[src]
impl Eq for Colorimpl PartialEq<Color> for Color[src]
impl PartialEq<Color> for Colorfn eq(&self, other: &Color) -> bool[src]
fn eq(&self, other: &Color) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Not for Color[src]
impl Not for Color