pub struct TopologicalIndex {
pub scc_id: usize,
pub discovery: usize,
}
Expand description
Used for topological sort
Fields§
§scc_id: usize
Strongly connected component ID
discovery: usize
Discovery order inside a strongly connected component
Trait Implementations§
Source§impl Debug for TopologicalIndex
impl Debug for TopologicalIndex
Source§impl Default for TopologicalIndex
impl Default for TopologicalIndex
Source§impl Ord for TopologicalIndex
impl Ord for TopologicalIndex
Source§impl PartialEq for TopologicalIndex
impl PartialEq for TopologicalIndex
Source§impl PartialOrd for TopologicalIndex
impl PartialOrd for TopologicalIndex
impl Eq for TopologicalIndex
impl StructuralPartialEq for TopologicalIndex
Auto Trait Implementations§
impl Freeze for TopologicalIndex
impl RefUnwindSafe for TopologicalIndex
impl Send for TopologicalIndex
impl Sync for TopologicalIndex
impl Unpin for TopologicalIndex
impl UnwindSafe for TopologicalIndex
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more