pub enum Color {
White,
Black,
}
Expand description
The color of a piece.
Variants§
Trait Implementations§
Source§impl Not for Color
A color can be inverted using the !
operator.
!Color::White
becomes Color::Black
and vice versa.
impl Not for Color
A color can be inverted using the !
operator.
!Color::White
becomes Color::Black
and vice versa.
Source§impl Ord for Color
impl Ord for Color
Source§impl PartialOrd for Color
impl PartialOrd for Color
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more