pub enum LoopHandling {
NoLoops,
Once,
Twice,
}Expand description
How to count self-loop edges in the adjacency matrix diagonal.
Variants§
NoLoops
Ignore loops — diagonal is always zero.
Once
Count each loop once.
Twice
Count each loop twice for undirected graphs (once for directed).
Trait Implementations§
Source§impl Clone for LoopHandling
impl Clone for LoopHandling
Source§fn clone(&self) -> LoopHandling
fn clone(&self) -> LoopHandling
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 LoopHandling
impl Debug for LoopHandling
Source§impl PartialEq for LoopHandling
impl PartialEq for LoopHandling
impl Copy for LoopHandling
impl Eq for LoopHandling
impl StructuralPartialEq for LoopHandling
Auto Trait Implementations§
impl Freeze for LoopHandling
impl RefUnwindSafe for LoopHandling
impl Send for LoopHandling
impl Sync for LoopHandling
impl Unpin for LoopHandling
impl UnsafeUnpin for LoopHandling
impl UnwindSafe for LoopHandling
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