Enum petgraph::visit::Control [−][src]
pub enum Control<B> {
Continue,
Prune,
Break(B),
}Control flow for depth_first_search callbacks.
Variants
Continue the DFS traversal as normal.
Prune the current node from the DFS traversal. No more edges from this
node will be reported to the callback. A DfsEvent::Finish for this
node will still be reported. This can be returned in response to any
DfsEvent, except Finish, which will panic.
Stop the DFS traversal and return the provided value.
Implementations
impl<B> Control<B>[src]
impl<B> Control<B>[src]Trait Implementations
impl<B> ControlFlow for Control<B>[src]
impl<B> ControlFlow for Control<B>[src]impl<B: Copy> Copy for Control<B>[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for Control<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Control<B> where
B: Send,
B: Send,
impl<B> Sync for Control<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Control<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Control<B> where
B: UnwindSafe,
B: UnwindSafe,