(&mut self, id: Id)
| 408 | /// `None`, or return an arbitrary value. |
| 409 | #[inline] |
| 410 | pub fn get_mut(&mut self, id: Id) -> Option<&mut T> { |
| 411 | match self.entries.get_mut(id.0.index())? { |
| 412 | Entry::Occupied(x) => Some(x), |
| 413 | Entry::Free { .. } => None, |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | /// Does this slab contain an allocated value for `id`? |
| 418 | #[inline] |