Returns (but does not remove) the item most recently added to this stack.
(&self)
| 20 | |
| 21 | /// Returns (but does not remove) the item most recently added to this stack. |
| 22 | pub fn peek(&self) -> Option<&T> { |
| 23 | self.ll.first() |
| 24 | } |
| 25 | |
| 26 | /// Returns an iterator to this stack that iterates through the items in LIFO order. |
| 27 | pub fn iter(&self) -> Iter<'_, T> { |