Macro scopeguard::defer_on_unwind [] [src]

macro_rules! defer_on_unwind {
    ($e:expr) => { ... };
}

Macro to create a ScopeGuard (run on unwinding from panic).

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.