Returns the value associated with the given key.
(&self, key: &str)
| 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 |