[−][src]Enum pgn_reader::Color
White or Black.
Variants
BlackWhiteMethods
impl Color[src]
pub fn from_char(ch: char) -> Option<Color>[src]
pub fn from_white(white: bool) -> Color[src]
pub fn from_black(black: bool) -> Color[src]
pub fn fold<T>(self, white: T, black: T) -> T[src]
pub fn is_white(self) -> bool[src]
pub fn is_black(self) -> bool[src]
pub fn char(self) -> char[src]
pub fn pawn(self) -> Piece[src]
pub fn knight(self) -> Piece[src]
pub fn bishop(self) -> Piece[src]
pub fn rook(self) -> Piece[src]
pub fn queen(self) -> Piece[src]
pub fn king(self) -> Piece[src]
Trait Implementations
impl PartialEq<Color> for Color[src]
fn eq(&self, other: &Color) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Not for Color[src]
impl Clone for Color[src]
fn clone(&self) -> Color[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 Copy for Color[src]
impl Eq for Color[src]
impl BitXor<bool> for Color[src]
type Output = Color
The resulting type after applying the ^ operator.
fn bitxor(self, flip: bool) -> Color[src]
impl Hash for Color[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,