Clears all entries from the map.
(&mut self)
| 121 | |
| 122 | /// Clears all entries from the map. |
| 123 | pub fn clear(&mut self) { |
| 124 | match self { |
| 125 | Self::Small(list) => list.clear(), |
| 126 | Self::Large(map) => map.clear(), |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /// Returns the number of entries in the map. |
| 131 | pub fn len(&self) -> usize { |