petgraph::visit

Trait ControlFlow

Source
pub trait ControlFlow {
    // Required methods
    fn continuing() -> Self;
    fn should_break(&self) -> bool;
    fn should_prune(&self) -> bool;
}
Expand description

Control flow for callbacks.

The empty return value () is equivalent to continue.

Required Methods§

Source

fn continuing() -> Self

Source

fn should_break(&self) -> bool

Source

fn should_prune(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ControlFlow for ()

Source§

impl<C: ControlFlow, E> ControlFlow for Result<C, E>

Implementors§