pub enum DegreeMode {
Out,
In,
All,
}Expand description
Direction mode for degree computation in directed graphs.
Variants§
Out
Out-degree (number of outgoing edges).
In
In-degree (number of incoming edges).
All
Total degree (out + in; for undirected graphs, same as either).
Trait Implementations§
Source§impl Clone for DegreeMode
impl Clone for DegreeMode
Source§fn clone(&self) -> DegreeMode
fn clone(&self) -> DegreeMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DegreeMode
Source§impl Debug for DegreeMode
impl Debug for DegreeMode
impl Eq for DegreeMode
Source§impl PartialEq for DegreeMode
impl PartialEq for DegreeMode
Source§fn eq(&self, other: &DegreeMode) -> bool
fn eq(&self, other: &DegreeMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DegreeMode
Auto Trait Implementations§
impl Freeze for DegreeMode
impl RefUnwindSafe for DegreeMode
impl Send for DegreeMode
impl Sync for DegreeMode
impl Unpin for DegreeMode
impl UnsafeUnpin for DegreeMode
impl UnwindSafe for DegreeMode
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