pub struct DependencyPath<C, R> {
pub cells: Vec<C>,
pub hops: Vec<DependencyHop<R>>,
}Expand description
An ordered governed-cell-to-guard path that witnesses a guard cycle.
Paths returned by DependencyGraph::analyze contain one more cell than
hop; each hop connects the cells on either side. A self-guard has one cell
and no hops. The offending guard’s closing edge is not included.
§Examples
See the module example.
Fields§
§cells: Vec<C>Cells in traversal order, from the governed cell to its guard.
hops: Vec<DependencyHop<R>>Edge provenance in traversal order.
Trait Implementations§
impl<C: Eq, R: Eq> Eq for DependencyPath<C, R>
impl<C: PartialEq, R: PartialEq> StructuralPartialEq for DependencyPath<C, R>
Auto Trait Implementations§
impl<C, R> Freeze for DependencyPath<C, R>
impl<C, R> RefUnwindSafe for DependencyPath<C, R>where
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<C, R> Send for DependencyPath<C, R>
impl<C, R> Sync for DependencyPath<C, R>
impl<C, R> Unpin for DependencyPath<C, R>
impl<C, R> UnsafeUnpin for DependencyPath<C, R>
impl<C, R> UnwindSafe for DependencyPath<C, R>where
C: UnwindSafe,
R: 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