pub struct EdgeWeight {
pub edge_type: EdgeType,
pub weight: f64,
pub label: Option<String>,
}Expand description
Weight/metadata for an edge in the graph.
Fields§
§edge_type: EdgeTypeType of relationship
weight: f64Strength of the connection (0.0 to 1.0)
label: Option<String>Optional label for the edge
Implementations§
Source§impl EdgeWeight
impl EdgeWeight
Trait Implementations§
Source§impl Clone for EdgeWeight
impl Clone for EdgeWeight
Source§fn clone(&self) -> EdgeWeight
fn clone(&self) -> EdgeWeight
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 EdgeWeight
impl Debug for EdgeWeight
Auto Trait Implementations§
impl Freeze for EdgeWeight
impl RefUnwindSafe for EdgeWeight
impl Send for EdgeWeight
impl Sync for EdgeWeight
impl Unpin for EdgeWeight
impl UnwindSafe for EdgeWeight
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