flowutils 0.1.0

A collection of utilities for control fow.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use flowutils::defer;

fn main() {
    defer!(println!("order 6"));
    {
        defer!(println!("order 4"));
        defer!({
            println!("order 2");
            println!("order 3");
        });
        defer!(println!("order 1"));
    }
    defer!(println!("order 5"));
}