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

Method get_mut

cranelift/entity/src/primary.rs:84–86  ·  view source on GitHub ↗

Get the element at `k` if it exists, mutable version.

(&mut self, k: K)

Source from the content-addressed store, hash-verified

82
83 /// Get the element at `k` if it exists, mutable version.
84 pub fn get_mut(&mut self, k: K) -> Option<&mut V> {
85 self.elems.get_mut(k.index())
86 }
87
88 /// Is this map completely empty?
89 pub fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected