macro_rules! defer_on_success {
    ($($t:tt)*) => { ... };
}
Expand description

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

The macro takes statements, which are the body of a closure that will run when the scope is exited.

Requires crate feature use_std.