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.
Trait Implementations§
source§impl Clone for MagicSquare
impl Clone for MagicSquare
source§fn clone(&self) -> MagicSquare
fn clone(&self) -> MagicSquare
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for MagicSquare
impl Default for MagicSquare
source§fn default() -> MagicSquare
fn default() -> MagicSquare
Returns the “default value” for a type. Read more
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