[−][src]Enum shakmaty::Color
White
or Black
.
Variants
Implementations
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 backrank(self) -> Rank
[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 BitXor<bool> for Color
[src]
type Output = Color
The resulting type after applying the ^
operator.
pub fn bitxor(self, flip: bool) -> Color
[src]
impl Clone for Color
[src]
impl Copy for Color
[src]
impl Debug for Color
[src]
impl Eq for Color
[src]
impl Hash for Color
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Not for Color
[src]
impl PartialEq<Color> for Color
[src]
pub fn eq(&self, other: &Color) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Color
[src]
impl StructuralPartialEq for Color
[src]
Auto Trait Implementations
impl RefUnwindSafe for Color
[src]
impl Send for Color
[src]
impl Sync for Color
[src]
impl Unpin for Color
[src]
impl UnwindSafe for Color
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,