pub struct HalfMatrix { /* private fields */ }
Expand description
A matrix where only half of it is stored. See the lib documentation for more details.
Implementations§
Source§impl 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).
Trait Implementations§
Source§impl Clone for HalfMatrix
impl Clone for HalfMatrix
Source§fn clone(&self) -> HalfMatrix
fn clone(&self) -> HalfMatrix
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HalfMatrix
impl RefUnwindSafe for HalfMatrix
impl Send for HalfMatrix
impl Sync for HalfMatrix
impl Unpin for HalfMatrix
impl UnwindSafe for HalfMatrix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more