Skip to main content

Module ring_buffer

Module ring_buffer 

Structs§

RingBuffer
A high performance ring buffer optimized for writing that can be used to store a fixed number of elements. This ring buffer is a contiguous memory array allocated in the heap and keeps track of the last index that was written. Pushing a new element will overwrite the oldest element in the buffer. Additionally, iteration will always be O(n) where n is the capacity of the buffer, regardless of the number of elements that are stored in the buffer.
RingBufferIter

Type Aliases§

RingBufferIndex
RingBufferInternalIndex 🔒