macro_rules! defer_on_success {
    ($e:expr) => { ... };
}
Expand description

Macro to create a ScopeGuard (run on successful scope exit).

The macro takes one expression $e, which is the body of a closure that will run when the scope is exited. The expression can be a whole block.

Requires crate feature use_std.