pub struct IncidenceMatrix { /* private fields */ }Expand description
A dense incidence matrix.
Implementations§
Source§impl IncidenceMatrix
impl IncidenceMatrix
Sourcepub fn new(
point_count: usize,
line_count: usize,
entries: Vec<bool>,
) -> Option<Self>
pub fn new( point_count: usize, line_count: usize, entries: Vec<bool>, ) -> Option<Self>
Creates a dense incidence matrix when the entry count matches point_count * line_count.
Sourcepub const fn point_count(&self) -> usize
pub const fn point_count(&self) -> usize
Returns the point count.
Sourcepub const fn line_count(&self) -> usize
pub const fn line_count(&self) -> usize
Returns the line count.
Trait Implementations§
Source§impl Clone for IncidenceMatrix
impl Clone for IncidenceMatrix
Source§fn clone(&self) -> IncidenceMatrix
fn clone(&self) -> IncidenceMatrix
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 moreSource§impl Debug for IncidenceMatrix
impl Debug for IncidenceMatrix
Source§impl PartialEq for IncidenceMatrix
impl PartialEq for IncidenceMatrix
impl Eq for IncidenceMatrix
impl StructuralPartialEq for IncidenceMatrix
Auto Trait Implementations§
impl Freeze for IncidenceMatrix
impl RefUnwindSafe for IncidenceMatrix
impl Send for IncidenceMatrix
impl Sync for IncidenceMatrix
impl Unpin for IncidenceMatrix
impl UnsafeUnpin for IncidenceMatrix
impl UnwindSafe for IncidenceMatrix
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