Enum shakmaty::CastlingMode
source · pub enum CastlingMode {
Standard,
Chess960,
}
Expand description
Standard
or Chess960
.
Variants§
Implementations§
source§impl CastlingMode
impl CastlingMode
pub fn detect(setup: &Setup) -> CastlingMode
source§impl CastlingMode
impl CastlingMode
pub const fn from_standard(standard: bool) -> CastlingMode
pub const fn from_chess960(chess960: bool) -> CastlingMode
pub const fn is_standard(self) -> bool
pub const fn is_chess960(self) -> bool
Trait Implementations§
source§impl Clone for CastlingMode
impl Clone for CastlingMode
source§fn clone(&self) -> CastlingMode
fn clone(&self) -> CastlingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more