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]
impl<B> Control<B>
pub fn breaking() -> Control<()>
[src]
pub fn breaking() -> Control<()>
pub fn break_value(self) -> Option<B>
[src]
pub fn break_value(self) -> Option<B>
Get the value in Control::Break(_)
, if present.
Trait Implementations
impl<B: Copy> Copy for Control<B>
[src]
impl<B: Copy> Copy for Control<B>
impl<B: Clone> Clone for Control<B>
[src]
impl<B: Clone> Clone for Control<B>
fn clone(&self) -> Control<B>
[src]
fn clone(&self) -> Control<B>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<B: Debug> Debug for Control<B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<B> ControlFlow for Control<B>
[src]
impl<B> ControlFlow for Control<B>
fn continuing() -> Self
[src]
fn continuing() -> Self
fn should_break(&self) -> bool
[src]
fn should_break(&self) -> bool
impl<B> Default for Control<B>
[src]
impl<B> Default for Control<B>
The default is Continue
.