pub struct Position {
pub last_move: Option<(Square, Square)>,
/* private fields */
}Fields§
§last_move: Option<(Square, Square)>Actual source/destination squares (castling points at the king’s destination).
Implementations§
Source§impl Position
impl Position
pub fn node(&self) -> NodeId
pub fn piece(&self, square: Square) -> Option<(Color, Piece)>
pub fn side_to_move(&self) -> Color
pub fn fullmove_number(&self) -> u16
pub fn in_check(&self) -> bool
pub fn fen(&self) -> String
pub fn advance( &self, doc: &Collection, node: NodeId, cancel: &AtomicBool, ) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more