Removes and returns the item most recently added to this stack.
(&mut self)
| 15 | |
| 16 | /// Removes and returns the item most recently added to this stack. |
| 17 | pub fn pop(&mut self) -> Option<T> { |
| 18 | self.ll.pop_front() |
| 19 | } |
| 20 | |
| 21 | /// Returns (but does not remove) the item most recently added to this stack. |
| 22 | pub fn peek(&self) -> Option<&T> { |