(self)
| 443 | /// reference to it. Otherwise a mutable reference to an already existent value is returned. |
| 444 | #[inline] |
| 445 | pub fn or_default(self) -> &'a mut V |
| 446 | where |
| 447 | V: Default, |
| 448 | { |
| 449 | match self { |
| 450 | Entry::Occupied(entry) => entry.into_mut(), |
| 451 | Entry::Vacant(entry) => entry.insert(V::default()), |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | impl<K: fmt::Debug, V: fmt::Debug> fmt::Debug for Entry<'_, K, V> |
no test coverage detected