pub enum TargetState {
Unvisited,
OnStack,
Finished,
}Expand description
The state of the target of an edge when visit_edge reports the edge.
Variants§
Unvisited
The search has not reached the target yet.
OnStack
The target is on the current path - the source itself or one of its ancestors in the search - so the edge closes a cycle.
Finished
The search has reached the target and left it, or a stopped run left it on its path.
Implementations§
Source§impl TargetState
impl TargetState
Sourcepub const fn values() -> [TargetState; 3]
pub const fn values() -> [TargetState; 3]
Returns all target states, in declaration order - Java’s TargetState.values().
Trait Implementations§
Source§impl Clone for TargetState
impl Clone for TargetState
Source§fn clone(&self) -> TargetState
fn clone(&self) -> TargetState
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 moreimpl Copy for TargetState
Source§impl Debug for TargetState
impl Debug for TargetState
impl Eq for TargetState
Source§impl Hash for TargetState
impl Hash for TargetState
Source§impl Ord for TargetState
impl Ord for TargetState
Source§fn cmp(&self, other: &TargetState) -> Ordering
fn cmp(&self, other: &TargetState) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for TargetState
impl PartialEq for TargetState
Source§impl PartialOrd for TargetState
impl PartialOrd for TargetState
impl StructuralPartialEq for TargetState
Auto Trait Implementations§
impl Freeze for TargetState
impl RefUnwindSafe for TargetState
impl Send for TargetState
impl Sync for TargetState
impl Unpin for TargetState
impl UnsafeUnpin for TargetState
impl UnwindSafe for TargetState
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