Wrap
Associated Functions for the Wrap type
Built-in associated functions for the Wrap<T> type.
A view over circular buffer types (Queue/Ring) providing wrapped access.
Wrap Operations
enqueue
fn enqueue(mut self, element: T)
Adds an element to the wrapped buffer.
dequeue
fn dequeue(mut self) -> T
Removes and returns an element from the wrapped buffer.
skip
fn skip(mut self, count: Int)
Skips the specified number of elements in the buffer.
clear
fn clear(mut self)
Removes all elements from the buffer.
For additional associated functions like len, is_empty, filter, find, etc., see Sequential associated functions.