Enum shakmaty::CastlingSide [−][src]
pub enum CastlingSide { KingSide, QueenSide, }
KingSide
(O-O) or QueenSide
(O-O-O).
Variants
KingSide
QueenSide
Methods
impl CastlingSide
[src]
impl CastlingSide
pub fn is_queen_side(self) -> bool
[src]
pub fn is_queen_side(self) -> bool
pub fn is_king_side(self) -> bool
[src]
pub fn is_king_side(self) -> bool
pub fn king_to(self, color: Color) -> Square
[src]
pub fn king_to(self, color: Color) -> Square
pub fn rook_to(self, color: Color) -> Square
[src]
pub fn rook_to(self, color: Color) -> Square
Trait Implementations
impl Copy for CastlingSide
[src]
impl Copy for CastlingSide
impl Clone for CastlingSide
[src]
impl Clone for CastlingSide
fn clone(&self) -> CastlingSide
[src]
fn clone(&self) -> CastlingSide
Returns 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 Eq for CastlingSide
[src]
impl Eq for CastlingSide
impl PartialEq for CastlingSide
[src]
impl PartialEq for CastlingSide
fn eq(&self, other: &CastlingSide) -> bool
[src]
fn eq(&self, other: &CastlingSide) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for CastlingSide
[src]
impl Debug for CastlingSide
Auto Trait Implementations
impl Send for CastlingSide
impl Send for CastlingSide
impl Sync for CastlingSide
impl Sync for CastlingSide