pub struct FlatStackQueue<R: Region> { /* private fields */ }Expand description
A queue implementation over a flat stack.
Trait Implementations§
Source§impl<R: Region> ContainerQueue<FlatStack<R>> for FlatStackQueue<R>
impl<R: Region> ContainerQueue<FlatStack<R>> for FlatStackQueue<R>
Source§fn next_or_alloc(&mut self) -> Result<R::ReadItem<'_>, FlatStack<R>>
fn next_or_alloc(&mut self) -> Result<R::ReadItem<'_>, FlatStack<R>>
Returns either the next item in the container, or the container itself.
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Indicates whether
next_or_alloc will return Ok, and whether peek will return Some.Auto Trait Implementations§
impl<R> Freeze for FlatStackQueue<R>where
R: Freeze,
impl<R> RefUnwindSafe for FlatStackQueue<R>
impl<R> Send for FlatStackQueue<R>
impl<R> Sync for FlatStackQueue<R>
impl<R> Unpin for FlatStackQueue<R>
impl<R> UnwindSafe for FlatStackQueue<R>
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<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.