(mut self, f: F)
| 430 | where |
| 431 | F: FnOnce(&mut V), |
| 432 | { |
| 433 | if let Entry::Occupied(entry) = &mut self { |
| 434 | f(entry.get_mut()); |
| 435 | } |
| 436 | self |
| 437 | } |
| 438 | |
| 439 | /// Inserts a default-constructed value in the entry if it is vacant and returns a mutable |
| 440 | /// reference to it. Otherwise a mutable reference to an already existent value is returned. |
| 441 | #[inline] |
| 442 | pub fn or_default(self) -> &'a mut V |
| 443 | where |