Returns the number of entries in the map.
(&self)
| 129 | |
| 130 | /// Returns the number of entries in the map. |
| 131 | pub fn len(&self) -> usize { |
| 132 | match self { |
| 133 | Self::Small(list) => list.len(), |
| 134 | Self::Large(map) => map.len(), |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /// Returns whether the map is empty. |
| 139 | pub fn is_empty(&self) -> bool { |
no outgoing calls
no test coverage detected