struct WSuc<E, Ix: IndexType> {
suc: Ix,
weight: E,
}Expand description
Weighted successor
Fields§
§suc: IxIndex of the successor.
weight: EWeight of the edge to suc.
Trait Implementations§
Source§impl<E: Ord, Ix: Ord + IndexType> Ord for WSuc<E, Ix>
impl<E: Ord, Ix: Ord + IndexType> Ord for WSuc<E, Ix>
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<E: PartialOrd, Ix: PartialOrd + IndexType> PartialOrd for WSuc<E, Ix>
impl<E: PartialOrd, Ix: PartialOrd + IndexType> PartialOrd for WSuc<E, Ix>
impl<E: Eq, Ix: Eq + IndexType> Eq for WSuc<E, Ix>
impl<E, Ix: IndexType> StructuralPartialEq for WSuc<E, Ix>
Auto Trait Implementations§
impl<E, Ix> Freeze for WSuc<E, Ix>
impl<E, Ix> RefUnwindSafe for WSuc<E, Ix>where
Ix: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, Ix> Send for WSuc<E, Ix>
impl<E, Ix> Sync for WSuc<E, Ix>
impl<E, Ix> Unpin for WSuc<E, Ix>
impl<E, Ix> UnsafeUnpin for WSuc<E, Ix>where
Ix: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, Ix> UnwindSafe for WSuc<E, Ix>where
Ix: 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.