pub struct DependencyLink<T> {
pub prec: T,
pub succ: T,
}Expand description
A dependency link between two items in a sort.
Fields§
§prec: TThe item that succ depends on.
succ: TThe item that depends on prec.
Trait Implementations§
Source§impl<T: Clone> Clone for DependencyLink<T>
impl<T: Clone> Clone for DependencyLink<T>
Source§fn clone(&self) -> DependencyLink<T>
fn clone(&self) -> DependencyLink<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for DependencyLink<T>
Source§impl<T: Debug> Debug for DependencyLink<T>
impl<T: Debug> Debug for DependencyLink<T>
Source§impl<T> Extend<DependencyLink<T>> for TopologicalSort<T>
impl<T> Extend<DependencyLink<T>> for TopologicalSort<T>
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = DependencyLink<T>>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = DependencyLink<T>>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> FromIterator<DependencyLink<T>> for TopologicalSort<T>
impl<T> FromIterator<DependencyLink<T>> for TopologicalSort<T>
Source§fn from_iter<I>(iter: I) -> TopologicalSort<T>where
I: IntoIterator<Item = DependencyLink<T>>,
fn from_iter<I>(iter: I) -> TopologicalSort<T>where
I: IntoIterator<Item = DependencyLink<T>>,
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for DependencyLink<T>where
T: Freeze,
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> UnsafeUnpin for DependencyLink<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DependencyLink<T>where
T: 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