Enum ::std::ops::ControlFlow

Used to tell an operation whether it should exit early or go on as usual.

This acts as the basis of the TRY protocol in Rune.

Examples

use std::ops::ControlFlow;

let c = ControlFlow::Continue(42);
assert_eq!(c.0, 42);
assert_eq!(c, ControlFlow::Continue(42));

Variants

Move on to the next phase of the operation as normal.

Exit the operation without running subsequent phases.

Protocols

protocol is_variant

Test if the provided argument is a variant.

protocol get
let output = value.0

Allows a get operation to work.