pub struct Scc<'a, NodeId: Id> {
pub kind: SccKind,
pub nodes: &'a [NodeId],
}Expand description
A single strongly-connected component in a graph.
Fields§
§kind: SccKindIndicates if the component contains a cycle.
nodes: &'a [NodeId]The nodes in the component.
Trait Implementations§
Source§impl<'a, NodeId: Ord + Id> Ord for Scc<'a, NodeId>
impl<'a, NodeId: Ord + Id> Ord for Scc<'a, NodeId>
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<'a, NodeId: PartialOrd + Id> PartialOrd for Scc<'a, NodeId>
impl<'a, NodeId: PartialOrd + Id> PartialOrd for Scc<'a, NodeId>
impl<'a, NodeId: Copy + Id> Copy for Scc<'a, NodeId>
impl<'a, NodeId: Eq + Id> Eq for Scc<'a, NodeId>
impl<'a, NodeId: Id> StructuralPartialEq for Scc<'a, NodeId>
Auto Trait Implementations§
impl<'a, NodeId> Freeze for Scc<'a, NodeId>
impl<'a, NodeId> RefUnwindSafe for Scc<'a, NodeId>where
NodeId: RefUnwindSafe,
impl<'a, NodeId> Send for Scc<'a, NodeId>where
NodeId: Sync,
impl<'a, NodeId> Sync for Scc<'a, NodeId>where
NodeId: Sync,
impl<'a, NodeId> Unpin for Scc<'a, NodeId>
impl<'a, NodeId> UnwindSafe for Scc<'a, NodeId>where
NodeId: RefUnwindSafe,
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