pub trait RingBufferWrite<T>: RingBuffer<T> + Extend<T> {
    fn push(&mut self, value: T);
}
Expand description

Defines behaviour for ringbuffers which allow for writing to the end of them (as a queue). For arbitrary buffer access however, RingBufferExt is necessary.

Required methods

Pushes a value onto the buffer. Cycles around if capacity is reached.

Implementors