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

Method get

cranelift/entity/src/boxed_slice.rs:47–49  ·  view source on GitHub ↗

Get the element at `k` if it exists.

(&self, k: K)

Source from the content-addressed store, hash-verified

45
46 /// Get the element at `k` if it exists.
47 pub fn get(&self, k: K) -> Option<&V> {
48 self.elems.get(k.index())
49 }
50
51 /// Get the element at `k` if it exists, mutable version.
52 pub fn get_mut(&mut self, k: K) -> Option<&mut V> {

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected