pub struct MoveGenPreprocessing(/* private fields */);Expand description
Contains data about checkers, pinned pieces, and pinners
If you need to verify if a position is in check before generating legal moves then using movegen_preprocessing() followed by legal_moves_with_preprocessing() will save some time. eg:
let movegen_data = movegen_preprocessing(position); if movegen_data.in_check() { // …do something } legal_moves_with_preprocessing(list, data);
Implementations§
Auto Trait Implementations§
impl Freeze for MoveGenPreprocessing
impl RefUnwindSafe for MoveGenPreprocessing
impl Send for MoveGenPreprocessing
impl Sync for MoveGenPreprocessing
impl Unpin for MoveGenPreprocessing
impl UnwindSafe for MoveGenPreprocessing
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