(&mut self)
| 20 | } |
| 21 | |
| 22 | fn pop(&mut self) -> Option<T> { |
| 23 | if self.top == 0 { return None; } |
| 24 | self.top -= 1; |
| 25 | self.data.pop() |
| 26 | } |
| 27 | |
| 28 | fn peek(&self) -> Option<&T> { |
| 29 | if self.top == 0 { return None; } |
no outgoing calls
no test coverage detected