pub struct StablePrioContainerMax<T> { /* private fields */ }
Expand description

A stable priority container max. This means equal elements are returned in inserted order

Implementations

Creates a new StablePrioContainer with given max items. This value must not be smaller than 1

Panics

Panics if capacity is 0

Create a new StablePrioContainer with given preallocated size. capacity must not be smaller than 1

Panics

Panics if capacity is 0

Pushes a new element into the PrioContainer

Return a sorted vec of the prio container

Returns the amount of items currently stored in the PrioContainer

Returns true if no items have been pushed onto the PrioContainer

Trait Implementations

Extends a collection with the contents of an iterator. Read more

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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 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.