Struct inanis::state::movegen::MagicSquare
source · pub struct MagicSquare {
pub mask: u64,
pub shift: u8,
pub magic: u64,
pub attacks: Vec<u64>,
}
Fields§
§mask: u64
§shift: u8
§magic: u64
§attacks: Vec<u64>
Implementations§
source§impl MagicSquare
impl MagicSquare
sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructs a new instance of MagicSquare with zeroed values.
Auto Trait Implementations§
impl RefUnwindSafe for MagicSquare
impl Send for MagicSquare
impl Sync for MagicSquare
impl Unpin for MagicSquare
impl UnwindSafe for MagicSquare
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