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

Method get

cranelift/entity/src/primary.rs:74–76  ·  view source on GitHub ↗

Get the element at `k` if it exists.

(&self, k: K)

Source from the content-addressed store, hash-verified

72
73 /// Get the element at `k` if it exists.
74 pub fn get(&self, k: K) -> Option<&V> {
75 self.elems.get(k.index())
76 }
77
78 /// Get the slice of values associated with the given range of keys, if any.
79 pub fn get_range(&self, range: core::ops::Range<K>) -> Option<&[V]> {

Callers 1

get_rangeMethod · 0.45

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected