Struct dvcompute::simulation::queue::unbounded::Queue[][src]

pub struct Queue<SM, SO, T> where
    SM: QueueStrategy,
    SO: QueueStrategy
{ /* fields omitted */ }
Expand description

Represents an optimized unbounded queue by using the specified strategies for internal storing (in memory), SM, and dequeueing (output), SO, where T denotes the type of items stored in the queue.

Implementations

Create a new unbounded queue by the specified strategies.

Test whether the queue is empty.

Return the current queue size.

Dequeue by suspending the process if the queue is empty.

Dequeue with output prioerity by suspending the process if the queue is empty.

Try to dequeue immediately.

Remove the item from the queue and return a flag indicating whether the item was found and actually removed.

Remove the specified item from the queue.

Remove an item satisfying the specified predicate and return the item if found.

Test whether there is an item satisfying the specified predicate.

Find an item satisfying the specified predicate.

Clear the queue.

Enqueue the item.

Enqueue the item with storing priority.

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

Performs the conversion.

Performs the conversion.

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.