Struct rupta::util::chunked_queue::ChunkedQueue
source · pub struct ChunkedQueue<T> { /* private fields */ }Expand description
This queue is implemented as a linked list of chunks, where each chunk is a small buffer
that can hold a handful of elements.
Chunks need to be dynamically allocated as elements get pushed.
This queue is supposed to be faster thanthan LinkedList.
Implementations§
source§impl<T> ChunkedQueue<T>
impl<T> ChunkedQueue<T>
source§impl<T: Copy> ChunkedQueue<T>
impl<T: Copy> ChunkedQueue<T>
sourcepub fn iter_copied(&self) -> IterCopied<T> ⓘ
pub fn iter_copied(&self) -> IterCopied<T> ⓘ
Provides a forward copied iterator.
Trait Implementations§
source§impl<T: Debug> Debug for ChunkedQueue<T>
impl<T: Debug> Debug for ChunkedQueue<T>
source§impl<T> Default for ChunkedQueue<T>
impl<T> Default for ChunkedQueue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ChunkedQueue<T>where
T: RefUnwindSafe,
impl<T> !Send for ChunkedQueue<T>
impl<T> !Sync for ChunkedQueue<T>
impl<T> Unpin for ChunkedQueue<T>
impl<T> UnwindSafe for ChunkedQueue<T>where
T: UnwindSafe + 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