MCPcopy Create free account
hub / github.com/apache/fory / new

Method new

rust/tests/tests/test_debug.rs:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84impl HookGuard {
85 fn new() -> Self {
86 static HOOK_LOCK: OnceLock<Mutex<()>> = OnceLock::new();
87 let lock = HOOK_LOCK.get_or_init(|| Mutex::new(())).lock().unwrap();
88 reset_struct_debug_hooks();
89 event_log().lock().unwrap().clear();
90 HookGuard { _lock: lock }
91 }
92}
93
94impl Drop for HookGuard {

Callers

nothing calls this directly

Calls 5

reset_struct_debug_hooksFunction · 0.85
event_logFunction · 0.85
lockMethod · 0.65
unwrapMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected