(&self, id: Id)
| 394 | /// `None`, or return an arbitrary value. |
| 395 | #[inline] |
| 396 | pub fn get(&self, id: Id) -> Option<&T> { |
| 397 | match self.entries.get(id.0.index())? { |
| 398 | Entry::Occupied(x) => Some(x), |
| 399 | Entry::Free { .. } => None, |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | /// Get an exclusive borrow of the value associated with `id`. |
| 404 | /// |