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

Method get_mut

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

Source from the content-addressed store, hash-verified

408 /// `None`, or return an arbitrary value.
409 #[inline]
410 pub fn get_mut(&mut self, id: Id) -> Option<&mut T> {
411 match self.entries.get_mut(id.0.index())? {
412 Entry::Occupied(x) => Some(x),
413 Entry::Free { .. } => None,
414 }
415 }
416
417 /// Does this slab contain an allocated value for `id`?
418 #[inline]

Callers 15

populate_with_wasiMethod · 0.45
native_loads_and_storesFunction · 0.45
lookup_pluginFunction · 0.45
setMethod · 0.45
removeMethod · 0.45
clearMethod · 0.45
debuggerFunction · 0.45
interruptMethod · 0.45
single_stepMethod · 0.45
continue_Method · 0.45
finishMethod · 0.45

Calls 1

indexMethod · 0.45

Tested by 4

poll_produceMethod · 0.36
poll_consumeMethod · 0.36
poll_produceMethod · 0.36
poll_consumeMethod · 0.36