(&mut self, key: K)
| 200 | #[inline] |
| 201 | #[track_caller] |
| 202 | pub fn remove(&mut self, key: K) -> Option<V> { |
| 203 | match self.entry(key) { |
| 204 | Entry::Occupied(entry) => Some(entry.remove()), |
| 205 | Entry::Vacant(_) => None, |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | /// Remove the last value from the map. |
| 210 | #[inline] |