pub struct Edge<K, N, E>(pub Node<K, N, E>, pub Node<K, N, E>, pub E)
where
K: Clone + Hash + PartialEq + Eq + Display,
N: Clone,
E: Clone;Expand description
An edge between nodes is a tuple struct Edge(u, v, e) where u is the
source node, v is the target node, and e is the edge’s value.
Tuple Fields§
§0: Node<K, N, E>§1: Node<K, N, E>§2: EImplementations§
Trait Implementations§
Source§impl<K, N, E> Ord for Edge<K, N, E>
impl<K, N, E> Ord for Edge<K, N, E>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K, N, E> PartialEq for Edge<K, N, E>
impl<K, N, E> PartialEq for Edge<K, N, E>
Source§impl<K, N, E> PartialOrd for Edge<K, N, E>
impl<K, N, E> PartialOrd for Edge<K, N, E>
impl<K, N, E> Eq for Edge<K, N, E>
Auto Trait Implementations§
impl<K, N, E> Freeze for Edge<K, N, E>where
E: Freeze,
impl<K, N, E> RefUnwindSafe for Edge<K, N, E>
impl<K, N, E> Send for Edge<K, N, E>
impl<K, N, E> Sync for Edge<K, N, E>
impl<K, N, E> Unpin for Edge<K, N, E>where
E: Unpin,
impl<K, N, E> UnsafeUnpin for Edge<K, N, E>where
E: UnsafeUnpin,
impl<K, N, E> UnwindSafe for Edge<K, N, E>
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