Function scopeguard::guard
[−]
[src]
pub fn guard<T, F>(v: T, dropfn: F) -> ScopeGuard<T, F, Always> where
F: FnMut(&mut T),
Create a new ScopeGuard
owning v
and with deferred closure dropfn
.