pub struct RingBuffer<T: Sized> { /* private fields */ }
Expand description

Ring buffer itself.

Implementations

Creates a new instance of a ring buffer.

Splits ring buffer into producer and consumer.

Returns capacity of the ring buffer.

Checks if the ring buffer is empty.

Checks if the ring buffer is full.

The length of the data in the buffer.

The remaining space in the buffer.

Trait Implementations

Executes the destructor for this type. 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.