pub struct Position {
pub pos64: Pos64,
pub side: PieceColour,
pub movegen_flags: MovegenFlags,
/* private fields */
}Fields§
§pos64: Pos64§side: PieceColour§movegen_flags: MovegenFlagsImplementations§
Source§impl Position
impl Position
pub fn new_starting() -> Self
pub fn new_position(&self, mv: &Move) -> Self
pub fn pos_hash(&self) -> u64
pub fn is_move_legal(&self, mv: &Move) -> bool
pub fn is_in_check(&self) -> bool
pub fn get_pseudo_legal_moves(&self) -> &Vec<Move>
pub fn get_legal_moves(&self) -> Vec<&Move>
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 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