pub struct Edge<N: Node, E: EdgeWeight> {
pub source: N,
pub target: N,
pub weight: E,
}
Expand description
Represents an edge in a graph
Fields§
§source: N
Source node
target: N
Target node
weight: E
Edge weight
Trait Implementations§
Auto Trait Implementations§
impl<N, E> Freeze for Edge<N, E>
impl<N, E> RefUnwindSafe for Edge<N, E>where
N: RefUnwindSafe,
E: RefUnwindSafe,
impl<N, E> Send for Edge<N, E>
impl<N, E> Sync for Edge<N, E>
impl<N, E> Unpin for Edge<N, E>
impl<N, E> UnwindSafe for Edge<N, E>where
N: UnwindSafe,
E: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more