Trait queue_rs::queue::QueueBehavior
source · [−]pub trait QueueBehavior<E>: Send + Sized {
fn len(&self) -> QueueSize;
fn capacity(&self) -> QueueSize;
fn offer(&mut self, e: E) -> Result<()>;
fn poll(&mut self) -> Result<Option<E>>;
fn is_empty(&self) -> bool { ... }
fn non_empty(&self) -> bool { ... }
fn is_full(&self) -> bool { ... }
fn non_full(&self) -> bool { ... }
}
Required Methods
The specified element will be inserted into this queue,
if the queue can be executed immediately without violating the capacity limit.
容量制限に違反せずにすぐ実行できる場合は、指定された要素をこのキューに挿入します。
Provided Methods
Returns whether the queue size has reached its capacity.
このキューのサイズが容量まで到達したかどうかを返します。