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ยง
use core::clone::TrivialClone;๐Experimental use core::cmp;๐use core::cmp::Ordering;๐use core::hash::Hash;๐use core::hash::Hash;๐use core::hash::Hasher;๐use core::iter::ByRefSized;๐Experimental use core::iter::repeat_n;๐use core::iter::repeat_with;๐use core::mem;๐use core::mem::ManuallyDrop;๐use core::mem::SizedTypeProperties;๐Experimental use core::ops::Index;๐use core::ops::IndexMut;๐use core::ops::Range;๐use core::ops::RangeBounds;๐use core::fmt;๐use core::ptr;๐use core::slice;๐use crate::alloc::Allocator;๐use crate::alloc::AllocatorNightly;๐Experimental use crate::alloc::Global;๐use crate::collections::retain::retain_raw;๐use crate::collections::TryReserveError;๐use crate::collections::TryReserveErrorKind;๐Experimental use crate::raw_vec::RawVec;๐Experimental use crate::vec::Vec;๐pub use self::drain::Drain;pub use self::iter_mut::IterMut;pub use self::into_iter::IntoIter;pub use self::iter::Iter;use self::spec_extend::SpecExtend;๐use self::spec_extend::SpecExtendFront;๐use self::spec_from_iter::SpecFromIter;๐use index::WrappedIndex;๐use index::wrap_index;๐pub use self::extract_if::ExtractIf;Experimental pub use self::splice::Splice;Experimental
Modulesยง
- drain ๐
- extract_
if ๐ - index ๐
- into_
iter ๐ - iter ๐
- iter_
mut ๐ - macros ๐
- spec_
extend ๐ - spec_
from_ ๐iter - splice ๐
Structsยง
- Dropper ๐
- Runs the destructor for all items in the slice when it gets dropped (normally or during unwinding).
- VecDeque
- A double-ended queue implemented with a growable ring buffer.
Traitsยง
- Spec
Extend ๐From Within - Associated functions have the following preconditions: