Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dtypes.rs220 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>); global() struct
222 impl<T, F: FnOnce(T)> ScopeGuard<T, F> { global() implementation
237 impl ScopeGuard<(), fn(())> { global() implementation
239 new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> new() argument
244 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> { global() implementation
253 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> { global() implementation
260 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> { global() implementation
[all...]