(&mut self, index: usize, value: T)
| 72 | |
| 73 | #[inline(always)] |
| 74 | pub(crate) fn set(&mut self, index: usize, value: T) { |
| 75 | *self.data.get_mut(index).unwrap_or_else(|| { |
| 76 | cold_path(); |
| 77 | unreachable!("Stack index out of bounds, this is a bug"); |
| 78 | }) = value; |
| 79 | } |
| 80 | |
| 81 | #[inline(always)] |
| 82 | pub(crate) fn truncate_keep(&mut self, n: usize, end_keep: usize) { |