Removes and returns the item on this queue that was least recently added
(&mut self)
| 23 | |
| 24 | /// Removes and returns the item on this queue that was least recently added |
| 25 | pub fn dequeue(&mut self) -> Option<T> { |
| 26 | self.ll.pop_front() |
| 27 | } |
| 28 | |
| 29 | /// Returns the item least recently added to this queue |
| 30 | pub fn peek(&self) -> Option<&T> { |