pub fn defer<F: FnOnce()>(f: F) -> OnDrop<(), impl FnOnce(())>
Returns a structure that calls f when dropped.
f