guard

Function guard 

Source
pub fn guard<F>(f: F) -> DropPanic<F>
where F: Fn(),