Enum petgraph::visit::Control [−][src]
pub enum Control<B> { Continue, Prune, Break(B), }
Expand description
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,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more