Get the element at `k` if it exists.
(&self, k: K)
| 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]> { |