pub enum QueueStrategy {
Fifo,
Lifo,
}Expand description
Queue strategy when deque objects from the object pool.
Variants§
Fifo
First in first out.
This strategy behaves like a queue.
Lifo
Last in first out.
This strategy behaves like a stack.
Trait Implementations§
Source§impl Clone for QueueStrategy
impl Clone for QueueStrategy
Source§fn clone(&self) -> QueueStrategy
fn clone(&self) -> QueueStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueStrategy
Source§impl Debug for QueueStrategy
impl Debug for QueueStrategy
Source§impl Default for QueueStrategy
impl Default for QueueStrategy
Source§fn default() -> QueueStrategy
fn default() -> QueueStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueueStrategy
impl RefUnwindSafe for QueueStrategy
impl Send for QueueStrategy
impl Sync for QueueStrategy
impl Unpin for QueueStrategy
impl UnsafeUnpin for QueueStrategy
impl UnwindSafe for QueueStrategy
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