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

Method get

cranelift/bforest/src/map.rs:104–108  ·  view source on GitHub ↗

Get the value stored for `key`.

(&self, key: K, forest: &MapForest<K, V>, comp: &C)

Source from the content-addressed store, hash-verified

102
103 /// Get the value stored for `key`.
104 pub fn get<C: Comparator<K>>(&self, key: K, forest: &MapForest<K, V>, comp: &C) -> Option<V> {
105 self.root
106 .expand()
107 .and_then(|root| Path::default().find(key, root, &forest.nodes, comp))
108 }
109
110 /// Look up the value stored for `key`.
111 ///

Callers 6

nextMethod · 0.45
verify_treeMethod · 0.45
leaf_posMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
elemMethod · 0.45

Calls 2

expandMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected