Function defer::defer

source ·
pub fn defer<F>(f: F) -> impl Drop
where F: FnOnce(),
Expand description

Defer execution of a closure until the return value is dropped.