Get the element at `k` if it exists.
(&self, k: K)
| 65 | |
| 66 | /// Get the element at `k` if it exists. |
| 67 | pub fn get(&self, k: K) -> Option<&V> { |
| 68 | self.elems.get(k.index()) |
| 69 | } |
| 70 | |
| 71 | /// Get the element at `k` if it exists, mutable version. |
| 72 | pub fn get_mut(&mut self, k: K) -> Option<&mut V> { |