Trait ringbuffer::RingBufferWrite[][src]

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

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

fn push(&mut self, value: T)[src]

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

Loading content...

Implementors

impl<T> RingBufferWrite<T> for AllocRingBuffer<T>[src]

impl<T, const CAP: usize> RingBufferWrite<T> for ConstGenericRingBuffer<T, CAP>[src]

Loading content...