Method lrs::ringbuf::DynRingBuf::push_left

Appends an element to the left end of the ring buffer.

Syntax

impl<T, H> DynRingBuf<T, H>
    where H: Allocator,
{
    fn push_left(&mut self, val: T) -> ()
}

Arguments

NameDescription
val

The element to append.

Remarks

This method aborts the process if no memory is available and allocating additional memory fails. To avoid this, use reserve or try_push_right.