pub enum Queue<T> {
    Vec(QueueVec<T>),
    MPSC(QueueMPSC<T>),
}

Variants

Vec(QueueVec<T>)

MPSC(QueueMPSC<T>)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the length of this queue.
このキューの長さを返します。 Read more

Returns the capacity of this queue.
このキューの最大容量を返します。 Read more

The specified element will be inserted into this queue, if the queue can be executed immediately without violating the capacity limit.
容量制限に違反せずにすぐ実行できる場合は、指定された要素をこのキューに挿入します。 Read more

Retrieves and deletes the head of the queue. Returns None if the queue is empty.
キューの先頭を取得および削除します。キューが空の場合は None を返します。 Read more

Returns whether this queue is empty.
このキューが空かどうかを返します。 Read more

Returns whether this queue is non-empty.
このキューが空でないかどうかを返します。 Read more

Returns whether the queue size has reached its capacity.
このキューのサイズが容量まで到達したかどうかを返します。 Read more

Returns whether the queue size has not reached its capacity.
このキューのサイズが容量まで到達してないかどうかを返します。 Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.