pub trait HasPeekBehavior<E: Element>: QueueBehavior<E> {
    fn peek(&self) -> Result<Option<E>>;
}

Required Methods

Gets the head of the queue, but does not delete it. Returns None if the queue is empty.
キューの先頭を取得しますが、削除しません。キューが空の場合は None を返します。

Implementors