Creates an empty RingVec
pub fn new_preallocated(capacity: usize) -> RingVec<T>[src]
Creates an empty RingVec with preallocated storage
True if there is no spare capacity
Returns the number of items in the RingVec
Returns the maximum possible number of items.
Returns a ref to the head of the queue, if any.
Returns the next item in the queue, if any.
Appends an item if there is space.
Empties the RingVec, optionally shrinking the storage.
pub fn shrink_to_fit(&mut self)[src]
Attempts to reduce memory usage.
type Error = Infallible
The type returned in the event of a conversion error.