2 releases
Uses old Rust 2015
0.1.1 | Aug 19, 2017 |
---|---|
0.1.0 | Aug 18, 2017 |
#7 in #tfs
6KB
83 lines
A hack to control control-flow outside closures.
This crate allows one to do things like breaking loops outside a closure. It works through a a macro hack. Unless you really really need this, don't use it.
Example
#[macro_use]
extern crate control_flow;
loop {
let closure = || {
defer!(break)
};
// Breaks the loop.
run_loop!(closure());
}