scopeguard.rs
SHA-256337cde60c9e1109cd19d4fa53529014cef1e3d5900dffde82f647881df1505f7
Malecule∅
Evidence
1// Extracted from the scopeguard crate
2use core::ops::{Deref, DerefMut};
3
4pub struct ScopeGuard<T, F>
⋯8 lines
17:6… copeGuard { dropfn, value }
18}
19
20impl<T, F> Deref for ScopeGuard<T, F>
21where
22 F: FnMut(&mut T),
23{
24 type Target = T;
25 #[cfg_attr(feature = "i …