Struct dvcompute::simulation::strategy::LCFSStorage[][src]

pub struct LCFSStorage<T> { /* fields omitted */ }
Expand description

A queue storage based on the LCFS strategy.

Implementations

Create a new storage.

Trait Implementations

The type of priorities, if push_with_priority is supported. Otherwise, it may define the () type. Read more

The type of items.

Test whether the storage is empty.

Pop the front item.

Push an item, or panic if only push_with_priority is supported.

Push an item with the specified priority, or panic if only push is supported.

Try to remove an item satisfying the specified predicate and return the item removed.

Detect whether there is an element satisfying the specified predicate in the queue.

Find an element satisfying the specified predicate.

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

The type of priorities, if push_with_priority is supported. Otherwise, it may define the () type. Read more

The type of items.

Test whether the storage is empty.

Pop the front item.

Push an item, or panic if only push_with_priority is supported.

Push an item with the specified priority, or panic if only push is supported.

Try to remove an item satisfying the specified predicate and return the item removed.

Detect whether there is an element satisfying the specified predicate in the queue.

Find an element satisfying the specified predicate.

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.