added more to queue

This commit is contained in:
Wyatt J. Miller 2020-11-22 23:20:45 -05:00
parent 5300c4f4fc
commit 971fc89254

View File

@ -28,4 +28,8 @@ impl<T> Queue<T> {
pub fn peek(&self) -> Option<&T> {
self.queue.first()
}
pub fn peek_at(&self, item: T) -> Option<&T> {
self.queue.get(item)
}
}