(&self)
| 421 | match *self { |
| 422 | Entry::Occupied(ref entry) => entry.key(), |
| 423 | Entry::Vacant(ref entry) => entry.key(), |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | /// Modifies the entry if it is occupied. |
| 428 | #[inline] |
| 429 | pub fn and_modify<F>(mut self, f: F) -> Self |
| 430 | where |
| 431 | F: FnOnce(&mut V), |