Enum chalk_ir::visit::ControlFlow [−][src]
pub enum ControlFlow<B, C = ()> { Continue(C), Break(B), }
Expand description
An copy of the unstable std::ops::ControlFlow
for use in Chalk visitors.
Variants
Continue in the loop, using the given value for the next iteration
Exit the loop, yielding the given value
Implementations
Returns true
if this is a Continue
variant.
Converts the ControlFlow
into an Option
which is Some
if the ControlFlow
was Break
and None
otherwise.