Module vec_deque

1.36.0 ยท Source
Expand description

A double-ended queue (deque) implemented with a growable ring buffer.

This queue has O(1) amortized inserts and removals from both ends of the container. It also has O(1) indexing like a vector. The contained elements are not required to be copyable, and the queue will be sendable if the contained type is sendable.

Re-exportsยง

pub use self::drain::Drain;
pub use self::iter_mut::IterMut;
pub use self::into_iter::IntoIter;
pub use self::iter::Iter;

Modulesยง

drain ๐Ÿ”’
into_iter ๐Ÿ”’
iter ๐Ÿ”’
iter_mut ๐Ÿ”’
macros ๐Ÿ”’
spec_extend ๐Ÿ”’
spec_from_iter ๐Ÿ”’

Structsยง

VecDeque
A double-ended queue implemented with a growable ring buffer.

Functionsยง

wrap_index ๐Ÿ”’
Returns the index in the underlying buffer for a given logical element index.