Enum petgraph::visit::Control [] [src]

pub enum Control<B> {
    Continue,
    Break(B),
}

Control flow for callbacks.

Break can carry a value.

Variants

Methods

impl<B> Control<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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B: Debug> Debug for Control<B>
[src]

Formats the value using the given formatter.

impl<B> ControlFlow for Control<B>
[src]

impl<B> Default for Control<B>
[src]

The default is Continue.

Returns the "default value" for a type. Read more