Appends an element to the left end of the ring buffer.
impl<T, H> DynRingBuf<T, H>
where H: Allocator,
{
fn push_left(&mut self, val: T) -> ()
}| Name | Description |
|---|---|
| val | The element to append. |
This method aborts the process if no memory is available and allocating additional memory fails. To avoid this, use reserve or try_push_right.