pub struct FixedCapacityQueue<T: Clone> { /* private fields */ }
Expand description
A custom implementation of a circular queue which is extremely quick and lightweight. However, the downside is you need to know an upper bound on the number of elements that will be inside the queue at any given time for this queue to work.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for FixedCapacityQueue<T>
impl<T> RefUnwindSafe for FixedCapacityQueue<T>where
T: RefUnwindSafe,
impl<T> Send for FixedCapacityQueue<T>where
T: Send,
impl<T> Sync for FixedCapacityQueue<T>where
T: Sync,
impl<T> Unpin for FixedCapacityQueue<T>
impl<T> UnwindSafe for FixedCapacityQueue<T>where
T: UnwindSafe,
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