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]

[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

[src]

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

The default is Continue.

[src]

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