pub enum SetReservedSpace {
Keep,
ShrinkTo(usize),
GrowTo(usize),
Exact(usize),
}
Expand description
Defines what happens to the reserved space of one of the deque ends on a call
to set_reserved_space
.
Variants§
Keep
The reserved space is not changed.
ShrinkTo(usize)
The reserved space is shrunk to the specified size.
If the current space is less than the wanted size, then this is a no-op.
GrowTo(usize)
The reserved space is grown to the specified size.
If the current space is greater than the wanted size, then this is a no-op.
Exact(usize)
The reserved space is unconditionally changed to the specified size.
Trait Implementations§
Source§impl Clone for SetReservedSpace
impl Clone for SetReservedSpace
Source§fn clone(&self) -> SetReservedSpace
fn clone(&self) -> SetReservedSpace
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetReservedSpace
impl Debug for SetReservedSpace
Source§impl PartialEq for SetReservedSpace
impl PartialEq for SetReservedSpace
impl Copy for SetReservedSpace
impl Eq for SetReservedSpace
impl StructuralPartialEq for SetReservedSpace
Auto Trait Implementations§
impl Freeze for SetReservedSpace
impl RefUnwindSafe for SetReservedSpace
impl Send for SetReservedSpace
impl Sync for SetReservedSpace
impl Unpin for SetReservedSpace
impl UnwindSafe for SetReservedSpace
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