Struct IncidenceMatrix
pub struct IncidenceMatrix { /* private fields */ }Expand description
A dense incidence matrix.
Implementations§
§impl IncidenceMatrix
impl IncidenceMatrix
pub fn new(
point_count: usize,
line_count: usize,
entries: Vec<bool>,
) -> Option<IncidenceMatrix>
pub fn new( point_count: usize, line_count: usize, entries: Vec<bool>, ) -> Option<IncidenceMatrix>
Creates a dense incidence matrix when the entry count matches point_count * line_count.
pub const fn point_count(&self) -> usize
pub const fn point_count(&self) -> usize
Returns the point count.
pub const fn line_count(&self) -> usize
pub const fn line_count(&self) -> usize
Returns the line count.
pub fn is_incident(&self, point: usize, line: usize) -> Option<bool>
pub fn is_incident(&self, point: usize, line: usize) -> Option<bool>
Returns whether a point is incident with a line.
Trait Implementations§
§impl Clone for IncidenceMatrix
impl Clone for IncidenceMatrix
§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 more§impl Debug for IncidenceMatrix
impl Debug for IncidenceMatrix
§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