Get the last item from this [`ArrayVec`].
(&self)
| 63 | |
| 64 | /// Get the last item from this [`ArrayVec`]. |
| 65 | pub fn last(&self) -> Option<&T> { |
| 66 | self.length.checked_sub(1).and_then(|n| self.get(n)) |
| 67 | } |
| 68 | |
| 69 | /// Extract the inner array. |
| 70 | pub fn into_array(self) -> [Option<T>; N] { |
no test coverage detected