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> + '_
pub fn iter_ones_at_column(&self, j: u16) -> impl Iterator<Item = u16> + '_
pub fn into_bitset(self) -> RoaringBitmap
Trait Implementations§
Source§impl Clone for StrictlyUpperTriangularLogicalMatrix
impl Clone for StrictlyUpperTriangularLogicalMatrix
Source§fn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
fn clone(&self) -> StrictlyUpperTriangularLogicalMatrix
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 moreimpl Eq for StrictlyUpperTriangularLogicalMatrix
Auto Trait Implementations§
impl Freeze for StrictlyUpperTriangularLogicalMatrix
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