Enum shakmaty::CastlingMode
source · [−]pub enum CastlingMode {
Standard,
Chess960,
}
Expand description
Standard
or Chess960
.
Variants
Standard
Chess960
Implementations
sourceimpl CastlingMode
impl CastlingMode
pub fn detect(setup: &Setup) -> CastlingMode
sourceimpl CastlingMode
impl CastlingMode
pub fn from_standard(standard: bool) -> CastlingMode
pub fn from_chess960(chess960: bool) -> CastlingMode
pub fn is_standard(self) -> bool
pub fn is_chess960(self) -> bool
Trait Implementations
sourceimpl Clone for CastlingMode
impl Clone for CastlingMode
sourcefn clone(&self) -> CastlingMode
fn clone(&self) -> CastlingMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CastlingMode
impl Debug for CastlingMode
sourceimpl Hash for CastlingMode
impl Hash for CastlingMode
sourceimpl PartialEq<CastlingMode> for CastlingMode
impl PartialEq<CastlingMode> for CastlingMode
sourcefn eq(&self, other: &CastlingMode) -> bool
fn eq(&self, other: &CastlingMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for CastlingMode
impl Eq for CastlingMode
impl StructuralEq for CastlingMode
impl StructuralPartialEq for CastlingMode
Auto Trait Implementations
impl RefUnwindSafe for CastlingMode
impl Send for CastlingMode
impl Sync for CastlingMode
impl Unpin for CastlingMode
impl UnwindSafe for CastlingMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more