pub struct WeightedPath {
pub nodes: Vec<NodeId>,
pub total_weight: f64,
}Expand description
A path with an associated total weight, returned by weighted path algorithms.
Fields§
§nodes: Vec<NodeId>§total_weight: f64Trait Implementations§
Source§impl Clone for WeightedPath
impl Clone for WeightedPath
Source§fn clone(&self) -> WeightedPath
fn clone(&self) -> WeightedPath
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 WeightedPath
impl Debug for WeightedPath
Source§impl PartialEq for WeightedPath
impl PartialEq for WeightedPath
Source§fn eq(&self, other: &WeightedPath) -> bool
fn eq(&self, other: &WeightedPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeightedPath
Auto Trait Implementations§
impl Freeze for WeightedPath
impl RefUnwindSafe for WeightedPath
impl Send for WeightedPath
impl Sync for WeightedPath
impl Unpin for WeightedPath
impl UnsafeUnpin for WeightedPath
impl UnwindSafe for WeightedPath
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