pub enum DegreeDirection {
In,
Out,
Both,
}Expand description
The direction of edges to count for degree centrality.
Variants§
In
Count incoming edges only.
Out
Count outgoing edges only.
Both
Count both incoming and outgoing edges.
Trait Implementations§
Source§impl Clone for DegreeDirection
impl Clone for DegreeDirection
Source§fn clone(&self) -> DegreeDirection
fn clone(&self) -> DegreeDirection
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 DegreeDirection
Source§impl Debug for DegreeDirection
impl Debug for DegreeDirection
Source§impl<'de> Deserialize<'de> for DegreeDirection
impl<'de> Deserialize<'de> for DegreeDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DegreeDirection
Source§impl Hash for DegreeDirection
impl Hash for DegreeDirection
Source§impl PartialEq for DegreeDirection
impl PartialEq for DegreeDirection
Source§fn eq(&self, other: &DegreeDirection) -> bool
fn eq(&self, other: &DegreeDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DegreeDirection
impl Serialize for DegreeDirection
impl StructuralPartialEq for DegreeDirection
Auto Trait Implementations§
impl Freeze for DegreeDirection
impl RefUnwindSafe for DegreeDirection
impl Send for DegreeDirection
impl Sync for DegreeDirection
impl Unpin for DegreeDirection
impl UnsafeUnpin for DegreeDirection
impl UnwindSafe for DegreeDirection
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