pub struct StrictlyUpperTriangularLogicalMatrix { /* private fields */ }
Expand description
A zero-indexed row-major packed matrix of booleans.
Implementations
sourceimpl StrictlyUpperTriangularLogicalMatrix
impl StrictlyUpperTriangularLogicalMatrix
pub fn zeroed(size: usize) -> Self
pub fn from_iter<I: Iterator<Item = (usize, usize)>>(
size: usize,
iter: I
) -> Self
pub fn size(&self) -> usize
pub fn get(&self, i: usize, j: usize) -> bool
pub fn iter_ones(&self) -> impl Iterator<Item = (usize, usize)> + '_
pub fn iter_ones_at_row(&self, i: usize) -> impl Iterator<Item = usize> + '_
Trait Implementations
sourceimpl Clone for StrictlyUpperTriangularLogicalMatrix
impl Clone for StrictlyUpperTriangularLogicalMatrix
sourcefn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
fn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
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 more
Auto Trait Implementations
impl RefUnwindSafe for StrictlyUpperTriangularLogicalMatrix
impl Send for StrictlyUpperTriangularLogicalMatrix
impl Sync for StrictlyUpperTriangularLogicalMatrix
impl Unpin for StrictlyUpperTriangularLogicalMatrix
impl UnwindSafe for StrictlyUpperTriangularLogicalMatrix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more