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