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