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

Collection to store data of any kind.

Implementations

Creates a SequenceBuffer with a desired capacity.

Returns the most recently stored sequence number.

Returns a mutable reference to the entry with the given sequence number.

Returns a reference to the entry with the given sequence number.

Inserts the entry data into the sequence buffer. If the requested sequence number is “too old”, the entry will not be inserted and will return false

Returns whether or not we have previously inserted an entry for the given sequence number.

Removes an entry from the sequence buffer

Gets the oldest stored sequence number

Clear sequence buffer completely

Remove entries up until a specific sequence number

Get a count of entries in the buffer

Get an iterator into the sequence

Trait Implementations

Formats the value using the given formatter. 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

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.