Enum petgraph::visit::Control
[−]
[src]
pub enum Control<B> { Continue, Break(B), }
Control flow for callbacks.
Break
can carry a value.
Variants
Continue
Break(B)
Methods
impl<B> Control<B>
[src]
pub fn breaking() -> Control<()>
[src]
pub fn break_value(self) -> Option<B>
[src]
Get the value in Control::Break(_)
, if present.
Trait Implementations
impl<B: Copy> Copy for Control<B>
[src]
impl<B: Clone> Clone for Control<B>
[src]
fn clone(&self) -> Control<B>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<B: Debug> Debug for Control<B>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<B> ControlFlow for Control<B>
[src]
fn continuing() -> Self
[src]
fn should_break(&self) -> bool
[src]
impl<B> Default for Control<B>
[src]
The default is Continue
.