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

Method get

crates/core/src/slab.rs:396–401  ·  view source on GitHub ↗
(&self, id: Id)

Source from the content-addressed store, hash-verified

394 /// `None`, or return an arbitrary value.
395 #[inline]
396 pub fn get(&self, id: Id) -> Option<&T> {
397 match self.entries.get(id.0.index())? {
398 Entry::Occupied(x) => Some(x),
399 Entry::Free { .. } => None,
400 }
401 }
402
403 /// Get an exclusive borrow of the value associated with `id`.
404 ///

Callers 15

enter_dirMethod · 0.45
parseMethod · 0.45
lookup_pcMethod · 0.45
lookup_pc_tagMethod · 0.45
handlers_for_callsiteMethod · 0.45
into_iterMethod · 0.45
indexMethod · 0.45
containsMethod · 0.45
inc_nMethod · 0.45
from_elemMethod · 0.45
is_oom_ptrMethod · 0.45

Calls 1

indexMethod · 0.45

Tested by 7

fooMethod · 0.36
is_subtype_indexFunction · 0.36
linker_getFunction · 0.36
global_getFunction · 0.36
global_setFunction · 0.36
table_getFunction · 0.36