MCPcopy Create free account
hub / github.com/douchuan/algorithm / get

Method get

src/strings/tries.rs:80–82  ·  view source on GitHub ↗

Returns the value associated with the given key.

(&self, key: &str)

Source from the content-addressed store, hash-verified

78
79 /// Returns the value associated with the given key.
80 pub fn get(&self, key: &str) -> Option<&T> {
81 get_dth(self.root, key, 0).and_then(|p| unsafe { p.as_ref().val.as_ref() })
82 }
83
84 /// Inserts the key-value pair into the symbol table, overwriting
85 /// the old value with the new value if the key is already in the

Callers 1

containsMethod · 0.45

Calls 1

get_dthFunction · 0.70

Tested by

no test coverage detected