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

Trait for control flow inside visiting methods.

Required Methods§

source

fn continuing() -> Self

Constructs state indicating to continue.

source

fn should_break(&self) -> bool

Should return true if control flow should break.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B> ControlFlow for Control<B>

source§

impl<C> ControlFlow for C
where C: ControlFlow,