pub fn defer<F: FnOnce()>(f: F) -> Deferred<F>
Defer execution of f until this scope is exited.
f
This is equivalent to calling Deferred::new(f). See Deferred for more details.
Deferred::new(f)
Deferred