Home
last modified time | relevance | path

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

/external/rust/crates/scopeguard/src/
Dlib.rs298 pub struct ScopeGuard<T, F, S = Always> struct
308 impl<T, F, S> ScopeGuard<T, F, S> argument
317 pub fn with_strategy(v: T, dropfn: F) -> ScopeGuard<T, F, S> { in with_strategy()
318 ScopeGuard { in with_strategy()
367 pub fn guard<T, F>(v: T, dropfn: F) -> ScopeGuard<T, F, Always> in guard()
370 ScopeGuard::with_strategy(v, dropfn) in guard()
378 pub fn guard_on_success<T, F>(v: T, dropfn: F) -> ScopeGuard<T, F, OnSuccess> in guard_on_success()
381 ScopeGuard::with_strategy(v, dropfn) in guard_on_success()
413 pub fn guard_on_unwind<T, F>(v: T, dropfn: F) -> ScopeGuard<T, F, OnUnwind> in guard_on_unwind()
416 ScopeGuard::with_strategy(v, dropfn) in guard_on_unwind()
[all …]
/external/rust/crates/hashbrown/src/
Dscopeguard.rs4 pub struct ScopeGuard<T, F> struct
13 pub fn guard<T, F>(value: T, dropfn: F) -> ScopeGuard<T, F> in guard() argument
17 ScopeGuard { dropfn, value } in guard()
20 impl<T, F> Deref for ScopeGuard<T, F> implementation
31 impl<T, F> DerefMut for ScopeGuard<T, F> implementation
41 impl<T, F> Drop for ScopeGuard<T, F> implementation
/external/zstd/contrib/pzstd/utils/
DScopeGuard.h26 class ScopeGuard {
31 explicit ScopeGuard(Function&& function) in ScopeGuard() function
38 ~ScopeGuard() noexcept { in ~ScopeGuard()
47 ScopeGuard<Function> makeScopeGuard(Function&& function) { in makeScopeGuard()
48 return ScopeGuard<Function>(std::forward<Function>(function)); in makeScopeGuard()
DBUCK43 exported_headers=['ScopeGuard.h'],
/external/zstd/contrib/pzstd/utils/test/
DScopeGuardTest.cpp15 TEST(ScopeGuard, Dismiss) { in TEST() argument
22 TEST(ScopeGuard, Executes) { in TEST() argument
/external/rust/crates/scopeguard/
DREADME.rst71 - Add ``ScopeGuard::into_inner()``, which "defuses" the guard and returns the
90 - Rename ``Guard`` → ``ScopeGuard``
91 - Add ``ScopeGuard::with_strategy``.
92 - ``ScopeGuard`` now implements ``Debug``.
/external/rust/crates/hashbrown/src/raw/
Dmod.rs1392 ) -> Result<crate::scopeguard::ScopeGuard<Self, impl FnMut(&mut Self)>, TryReserveError> { in prepare_resize()