pub enum KahnSortResult {
Ok(Vec<String>),
CycleDetected {
sorted: Vec<String>,
stuck: Vec<String>,
},
}Expand description
Result of Kahn’s topological sort with diagnostic information.
Variants§
Ok(Vec<String>)
All events were successfully sorted.
CycleDetected
A cycle was detected. sorted contains the partial ordering of events
that could be processed, stuck contains events that could not reach
in-degree 0 (involved in cycles).
Implementations§
Trait Implementations§
Source§impl Clone for KahnSortResult
impl Clone for KahnSortResult
Source§fn clone(&self) -> KahnSortResult
fn clone(&self) -> KahnSortResult
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 moreAuto Trait Implementations§
impl Freeze for KahnSortResult
impl RefUnwindSafe for KahnSortResult
impl Send for KahnSortResult
impl Sync for KahnSortResult
impl Unpin for KahnSortResult
impl UnsafeUnpin for KahnSortResult
impl UnwindSafe for KahnSortResult
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