Home
last modified time | relevance | path

Searched defs:ScopeGuard (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/rust/kernel/
H A Dtypes.rs156 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>); struct
158 impl<T, F: FnOnce(T)> ScopeGuard<T, F> { impl
173 impl ScopeGuard<(), fn(())> { implementation
175 pub fn new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> { in new()
180 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> { implementation
189 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> { implementation
196 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> { implementation