MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get_or_init

Method get_or_init

crates/wasmtime/src/sync_std.rs:23–25  ·  view source on GitHub ↗
(&self, f: impl FnOnce() -> T)

Source from the content-addressed store, hash-verified

21
22 #[inline]
23 pub fn get_or_init(&self, f: impl FnOnce() -> T) -> &T {
24 self.0.get_or_init(f)
25 }
26
27 #[inline]
28 pub fn get_or_try_init<E>(&self, f: impl FnOnce() -> Result<T, E>) -> Result<&T, E> {

Callers 15

getMethod · 0.45
global_codeFunction · 0.45
keysFunction · 0.45
wasmtime_frame_func_nameFunction · 0.45
wasm_functype_paramsFunction · 0.45
wasm_functype_resultsFunction · 0.45
tyMethod · 0.45
wasm_tagtype_functypeFunction · 0.45
wasm_exporttype_nameFunction · 0.45
wasm_exporttype_typeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected