Macro scopeguard::defer

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

Macro to create a ScopeGuard (always run).

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.