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: E
Implementations§
Trait Implementations§
source§impl<K, N, E> Clone for Edge<K, N, E>where
K: Clone + Hash + PartialEq + Eq + Display + Clone,
N: Clone + Clone,
E: Clone + Clone,
impl<K, N, E> Clone for Edge<K, N, E>where K: Clone + Hash + PartialEq + Eq + Display + Clone, N: Clone + Clone, E: Clone + Clone,
source§impl<K, N, E> Ord for Edge<K, N, E>where
K: Clone + Hash + PartialEq + Eq + Display,
N: Clone,
E: Clone + Ord,
impl<K, N, E> Ord for Edge<K, N, E>where K: Clone + Hash + PartialEq + Eq + Display, N: Clone, E: Clone + Ord,
1.21.0 · 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<Edge<K, N, E>> for Edge<K, N, E>where
K: Clone + Hash + PartialEq + Eq + Display,
N: Clone,
E: Clone + Ord,
impl<K, N, E> PartialEq<Edge<K, N, E>> for Edge<K, N, E>where K: Clone + Hash + PartialEq + Eq + Display, N: Clone, E: Clone + Ord,
source§impl<K, N, E> PartialOrd<Edge<K, N, E>> for Edge<K, N, E>where
K: Clone + Hash + PartialEq + Eq + Display,
N: Clone,
E: Clone + Ord,
impl<K, N, E> PartialOrd<Edge<K, N, E>> for Edge<K, N, E>where K: Clone + Hash + PartialEq + Eq + Display, N: Clone, E: Clone + Ord,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<K, N, E> Eq for Edge<K, N, E>where K: Clone + Hash + PartialEq + Eq + Display, N: Clone, E: Clone + Ord,
Auto Trait Implementations§
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> !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