1pub struct Defer<F: FnMut()>(pub F); 2 3impl<F: FnMut()> Drop for Defer<F> { 4 fn drop(&mut self) { 5 self.0() 6 } 7}