Function scopeguard::guard [] [src]

pub fn guard<T, F>(v: T, dropfn: F) -> Guard<T, F> where F: FnMut(&mut T)