Struct topological_sort::DependencyLink
source · [−]pub struct DependencyLink<T> {
pub prec: T,
pub succ: T,
}
Expand description
A link between two items in a sort.
Fields
prec: T
The element which is depened upon by succ
.
succ: T
The element which depends on prec
.
Trait Implementations
sourceimpl<T: Clone> Clone for DependencyLink<T>
impl<T: Clone> Clone for DependencyLink<T>
sourcefn clone(&self) -> DependencyLink<T>
fn clone(&self) -> DependencyLink<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for DependencyLink<T>
impl<T: Debug> Debug for DependencyLink<T>
sourceimpl<T> From<(T, T)> for DependencyLink<T>
impl<T> From<(T, T)> for DependencyLink<T>
sourceimpl<T: Eq + Hash + Clone> FromIterator<DependencyLink<T>> for TopologicalSort<T>
impl<T: Eq + Hash + Clone> FromIterator<DependencyLink<T>> for TopologicalSort<T>
sourcefn from_iter<I: IntoIterator<Item = DependencyLink<T>>>(
iter: I
) -> TopologicalSort<T>ⓘNotable traits for TopologicalSort<T>impl<T: Hash + Eq + Clone> Iterator for TopologicalSort<T> type Item = T;
fn from_iter<I: IntoIterator<Item = DependencyLink<T>>>(
iter: I
) -> TopologicalSort<T>ⓘNotable traits for TopologicalSort<T>impl<T: Hash + Eq + Clone> Iterator for TopologicalSort<T> type Item = T;
Creates a value from an iterator. Read more
impl<T: Copy> Copy for DependencyLink<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for DependencyLink<T> where
T: RefUnwindSafe,
impl<T> Send for DependencyLink<T> where
T: Send,
impl<T> Sync for DependencyLink<T> where
T: Sync,
impl<T> Unpin for DependencyLink<T> where
T: Unpin,
impl<T> UnwindSafe for DependencyLink<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more