pub fn defer<F: FnOnce()>(f: F) -> OnDrop<F>
Expand description

Returns a structure that calls f when dropped.