scopeguard::defer! [] [src]

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

Macro to create a Guard (without any owned value).

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.