Struct half_matrix::HalfMatrix
source · pub struct HalfMatrix { /* private fields */ }
Expand description
A matrix where only half of it is stored. See the lib documentation for more details.
Implementations
sourceimpl HalfMatrix
impl HalfMatrix
sourcepub fn new(size: u32) -> Self
pub fn new(size: u32) -> Self
Creates a new half matrix of the given size. This value represents the maximum number of indices you can have for both sides. ABCD size = 4.
sourcepub fn enable(&mut self, row: u32, column: u32)
pub fn enable(&mut self, row: u32, column: u32)
Enables the boolean for the position (row, column). Row is required to be bigger or equal to column.
Trait Implementations
sourceimpl Clone for HalfMatrix
impl Clone for HalfMatrix
sourcefn clone(&self) -> HalfMatrix
fn clone(&self) -> HalfMatrix
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for HalfMatrix
impl Send for HalfMatrix
impl Sync for HalfMatrix
impl Unpin for HalfMatrix
impl UnwindSafe for HalfMatrix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more