guard

Function guard 

Source
pub(crate) fn guard<T, F>(value: T, dropfn: F) -> ScopeGuard<T, F>
where F: FnMut(&mut T),