pub struct NodeDegree {
pub node_id: NodeId,
pub degree: usize,
pub weighted_degree: f64,
}Expand description
One deterministic node degree record.
Fields§
§node_id: NodeIdExternal node identity.
degree: usizeUnweighted degree.
weighted_degree: f64Weighted degree, using one for edges without an explicit weight.
Trait Implementations§
Source§impl Clone for NodeDegree
impl Clone for NodeDegree
Source§fn clone(&self) -> NodeDegree
fn clone(&self) -> NodeDegree
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 moreSource§impl Debug for NodeDegree
impl Debug for NodeDegree
Source§impl<'de> Deserialize<'de> for NodeDegree
impl<'de> Deserialize<'de> for NodeDegree
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
Source§impl PartialEq for NodeDegree
impl PartialEq for NodeDegree
Source§impl Serialize for NodeDegree
impl Serialize for NodeDegree
impl StructuralPartialEq for NodeDegree
Auto Trait Implementations§
impl Freeze for NodeDegree
impl RefUnwindSafe for NodeDegree
impl Send for NodeDegree
impl Sync for NodeDegree
impl Unpin for NodeDegree
impl UnsafeUnpin for NodeDegree
impl UnwindSafe for NodeDegree
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