Struct roaring_graphs::strictly_upper_triangular_logical_matrix::StrictlyUpperTriangularLogicalMatrix
source · pub struct StrictlyUpperTriangularLogicalMatrix { /* private fields */ }Expand description
A zero-indexed row-major packed matrix of booleans.
Implementations§
source§impl StrictlyUpperTriangularLogicalMatrix
impl StrictlyUpperTriangularLogicalMatrix
pub fn zeroed(size: u16) -> Self
pub fn from_bitset(size: u16, bitset: RoaringBitmap) -> Self
pub fn from_iter<I: Iterator<Item = (u16, u16)>>(size: u16, iter: I) -> Self
pub fn size(&self) -> u16
pub fn get(&self, i: u16, j: u16) -> bool
pub fn clear(&mut self, i: u16, j: u16)
pub fn iter_ones(&self) -> impl Iterator<Item = (u16, u16)> + '_
pub fn iter_ones_at_row(&self, i: u16) -> impl Iterator<Item = u16> + '_
Trait Implementations§
source§impl Clone for StrictlyUpperTriangularLogicalMatrix
impl Clone for StrictlyUpperTriangularLogicalMatrix
source§fn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
fn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StrictlyUpperTriangularLogicalMatrix
impl Send for StrictlyUpperTriangularLogicalMatrix
impl Sync for StrictlyUpperTriangularLogicalMatrix
impl Unpin for StrictlyUpperTriangularLogicalMatrix
impl UnwindSafe for StrictlyUpperTriangularLogicalMatrix
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