pub struct Queue<'a, T: 'a, A: Allocator> { /* private fields */ }Expand description
A first-in, first-out data structure backed by a Deque
Implementations§
Source§impl<'a, T: 'a, A: Allocator> Queue<'a, T, A>
impl<'a, T: 'a, A: Allocator> Queue<'a, T, A>
Sourcepub fn into_inner(self) -> Deque<'a, T, A>
pub fn into_inner(self) -> Deque<'a, T, A>
Turns the Queue into its inner Deque
Sourcepub fn iter_mut(&mut self) -> IterMut<'a, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'a, T> ⓘ
Produces a mutable iterator over all of the elements in the queue
Trait Implementations§
Source§impl<'a, T: 'a, A: Allocator + Default> FromIterator<T> for Queue<'a, T, A>
impl<'a, T: 'a, A: Allocator + Default> FromIterator<T> for Queue<'a, T, A>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<'a, T: 'a, A: Allocator> IntoIterator for Queue<'a, T, A>
impl<'a, T: 'a, A: Allocator> IntoIterator for Queue<'a, T, A>
impl<'a, T: Send + 'a, A: Allocator + Send> Send for Queue<'a, T, A>
impl<'a, T: Sync + 'a, A: Allocator + Sync> Sync for Queue<'a, T, A>
Auto Trait Implementations§
impl<'a, T, A> Freeze for Queue<'a, T, A>where
A: Freeze,
impl<'a, T, A> RefUnwindSafe for Queue<'a, T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, A> Unpin for Queue<'a, T, A>where
A: Unpin,
impl<'a, T, A> UnwindSafe for Queue<'a, T, A>where
A: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more