Skip to main content

Module vec_deque

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ยง

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ยง

SpecExtendFromWithin ๐Ÿ”’
Associated functions have the following preconditions: