(max_index: usize)
| 71 | #[inline] |
| 72 | #[must_use] |
| 73 | pub fn with_max_index(max_index: usize) -> Self { |
| 74 | let mut map = Self::new(); |
| 75 | map.grow_to(max_index); |
| 76 | map |
| 77 | } |
| 78 | |
| 79 | /// Resizes the map to be large enough to hold entity references with an |
| 80 | /// index below `max_index`. |