(self, default: V)
| 382 | match self { |
| 383 | Entry::Occupied(entry) => entry.into_mut(), |
| 384 | Entry::Vacant(entry) => entry.insert(default), |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | /// Inserts the result of the `call` function in the entry if it is vacant and returns a mutable |
| 389 | /// reference to it. Otherwise a mutable reference to an already existent value is returned. |
| 390 | #[inline] |
| 391 | pub fn or_insert_with<F>(self, call: F) -> &'a mut V |
| 392 | where |