(&mut self, index: usize, item: A::Item)
| 569 | /// ``` |
| 570 | #[inline] |
| 571 | pub fn insert(&mut self, index: usize, item: A::Item) { |
| 572 | let x = self.try_insert(index, item); |
| 573 | assert!(x.is_none(), "ArrayVec::insert> capacity overflow!"); |
| 574 | } |
| 575 | |
| 576 | /// Tries to insert an item at the position given, moving all following |
| 577 | /// elements +1 index. |