Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ with
Function
with
src/common/drop.rs:29–38 ·
view source on GitHub ↗
(f: F)
Source
from the content-addressed store, hash-verified
27
}
28
29
pub fn with<F>(f: F)
30
where
31
F: FnOnce(Ctx),
32
{
33
DROPS.with(|drops| {
34
// reset DROPS to 0
35
drops.store(0, Ordering::SeqCst);
36
f(Ctx)
37
});
38
}
Callers
12
drop_clear
Function · 0.85
drop_with_delete
Function · 0.85
drop_clear
Function · 0.85
drop_with_delete
Function · 0.85
trie_st_drop
Function · 0.85
trie_st_drop_with_delete
Function · 0.85
trie_st_drop_with_put
Function · 0.85
tst_drop
Function · 0.85
tst_drop_with_put_none
Function · 0.85
drop_clear
Function · 0.85
drop_clear_with_reverse
Function · 0.85
drop_with_pop
Function · 0.85
Calls
no outgoing calls
Tested by
12
drop_clear
Function · 0.68
drop_with_delete
Function · 0.68
drop_clear
Function · 0.68
drop_with_delete
Function · 0.68
trie_st_drop
Function · 0.68
trie_st_drop_with_delete
Function · 0.68
trie_st_drop_with_put
Function · 0.68
tst_drop
Function · 0.68
tst_drop_with_put_none
Function · 0.68
drop_clear
Function · 0.68
drop_clear_with_reverse
Function · 0.68
drop_with_pop
Function · 0.68