(&mut self, element: T)
| 69 | } |
| 70 | |
| 71 | pub fn push(&mut self, element: T) { |
| 72 | self.try_push(element).unwrap() |
| 73 | } |
| 74 | |
| 75 | pub fn try_push(&mut self, element: T) -> Result<(), CapacityError<T>> { |
| 76 | if self.len() < self.capacity() { |
no test coverage detected