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

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

Control flow for callbacks.

Break can carry a value.

Variants

Continue
Break(B)

Implementations

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: Clone> Clone for Control<B>[src]

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

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

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

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

The default is Continue.

Auto Trait Implementations

impl<B> RefUnwindSafe for Control<B> where
    B: RefUnwindSafe

impl<B> Send for Control<B> where
    B: Send

impl<B> Sync for Control<B> where
    B: Sync

impl<B> Unpin for Control<B> where
    B: Unpin

impl<B> UnwindSafe for Control<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.