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§
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for DependencyLink<T>
impl<T: Debug> Debug for DependencyLink<T>
source§impl<T> From<(T, T)> for DependencyLink<T>
impl<T> From<(T, T)> for DependencyLink<T>
source§impl<T: Eq + Hash + Clone> FromIterator<DependencyLink<T>> for TopologicalSort<T>
impl<T: Eq + Hash + Clone> FromIterator<DependencyLink<T>> for TopologicalSort<T>
source§fn from_iter<I: IntoIterator<Item = DependencyLink<T>>>(
iter: I,
) -> TopologicalSort<T> ⓘ
fn from_iter<I: IntoIterator<Item = DependencyLink<T>>>( iter: I, ) -> TopologicalSort<T> ⓘ
Creates a value from an iterator. Read more
impl<T: Copy> Copy for DependencyLink<T>
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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)