[−][src]Struct shakmaty::variants::RacingKings
A Racing Kings position.
Trait Implementations
impl Clone for RacingKings
[src]
fn clone(&self) -> RacingKings
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RacingKings
[src]
impl Default for RacingKings
[src]
fn default() -> RacingKings
[src]
impl From<RacingKings> for VariantPosition
[src]
fn from(pos: RacingKings) -> VariantPosition
[src]
impl FromSetup for RacingKings
[src]
fn from_setup(setup: &dyn Setup) -> Result<RacingKings, PositionError>
[src]
impl Position for RacingKings
[src]
fn play_unchecked(&mut self, m: &Move)
[src]
fn legal_moves(&self, moves: &mut MoveList)
[src]
fn castles(&self) -> &Castles
[src]
fn has_insufficient_material(&self, _color: Color) -> bool
[src]
fn is_variant_end(&self) -> bool
[src]
fn variant_outcome(&self) -> Option<Outcome>
[src]
fn swap_turn(self) -> Result<Self, PositionError> where
Self: Sized + FromSetup,
[src]
Self: Sized + FromSetup,
fn legals(&self) -> MoveList
[src]
fn san_candidates(&self, role: Role, to: Square, moves: &mut MoveList)
[src]
fn castling_moves(&self, side: CastlingSide, moves: &mut MoveList)
[src]
fn en_passant_moves(&self, moves: &mut MoveList)
[src]
fn capture_moves(&self, moves: &mut MoveList)
[src]
fn promotion_moves(&self, moves: &mut MoveList)
[src]
fn is_legal(&self, m: &Move) -> bool
[src]
fn is_irreversible(&self, m: &Move) -> bool
[src]
fn king_attackers(
&self,
square: Square,
attacker: Color,
occupied: Bitboard
) -> Bitboard
[src]
&self,
square: Square,
attacker: Color,
occupied: Bitboard
) -> Bitboard
fn is_check(&self) -> bool
[src]
fn checkers(&self) -> Bitboard
[src]
fn is_checkmate(&self) -> bool
[src]
fn is_stalemate(&self) -> bool
[src]
fn is_insufficient_material(&self) -> bool
[src]
fn is_game_over(&self) -> bool
[src]
fn outcome(&self) -> Option<Outcome>
[src]
fn play(self, m: &Move) -> Result<Self, IllegalMoveError> where
Self: Sized,
[src]
Self: Sized,
impl Setup for RacingKings
[src]
fn board(&self) -> &Board
[src]
fn pockets(&self) -> Option<&Material>
[src]
fn turn(&self) -> Color
[src]
fn castling_rights(&self) -> Bitboard
[src]
fn ep_square(&self) -> Option<Square>
[src]
fn remaining_checks(&self) -> Option<&RemainingChecks>
[src]
fn halfmoves(&self) -> u32
[src]
fn fullmoves(&self) -> u32
[src]
fn us(&self) -> Bitboard
[src]
fn our(&self, role: Role) -> Bitboard
[src]
fn them(&self) -> Bitboard
[src]
fn their(&self, role: Role) -> Bitboard
[src]
Auto Trait Implementations
impl RefUnwindSafe for RacingKings
impl Send for RacingKings
impl Sync for RacingKings
impl Unpin for RacingKings
impl UnwindSafe for RacingKings
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,