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

Implementations on Foreign Types§

source§

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

source§

impl ControlFlow for ()

Implementors§