pub struct Edge {
pub to: usize,
pub weight: f64,
}
Expand description
The Edge type used in WeightedAdjacencyList
.
A from
field is not required because it’s implied by its position in the adjacency list.
Fields§
§to: usize
§weight: f64
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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