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

    fn enqueue(&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.

Provided Methods§

alias for push, forming a more natural counterpart to dequeue

Implementors§