pub struct GrowDoubling;
Expand description
Growth behavior which consistently doubles in size
Trait Implementations§
Source§impl Clone for GrowDoubling
impl Clone for GrowDoubling
Source§fn clone(&self) -> GrowDoubling
fn clone(&self) -> GrowDoubling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GrowDoubling
impl Debug for GrowDoubling
Source§impl Default for GrowDoubling
impl Default for GrowDoubling
Source§fn default() -> GrowDoubling
fn default() -> GrowDoubling
Returns the “default value” for a type. Read more
Source§impl Grow for GrowDoubling
impl Grow for GrowDoubling
Source§fn next_capacity<T, I: Index>(prev: I, minimum: I) -> I
fn next_capacity<T, I: Index>(prev: I, minimum: I) -> I
Calculate the next capacity to request from the allocator
Source§impl Ord for GrowDoubling
impl Ord for GrowDoubling
Source§fn cmp(&self, other: &GrowDoubling) -> Ordering
fn cmp(&self, other: &GrowDoubling) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GrowDoubling
impl PartialEq for GrowDoubling
Source§impl PartialOrd for GrowDoubling
impl PartialOrd for GrowDoubling
impl Copy for GrowDoubling
impl Eq for GrowDoubling
impl StructuralPartialEq for GrowDoubling
Auto Trait Implementations§
impl Freeze for GrowDoubling
impl RefUnwindSafe for GrowDoubling
impl Send for GrowDoubling
impl Sync for GrowDoubling
impl Unpin for GrowDoubling
impl UnwindSafe for GrowDoubling
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, A> ToOwnedIn<A> for T
impl<T, A> ToOwnedIn<A> for T
Source§fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
To to create an owned copy of this instance in a given allocation target.
Source§fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
Create an owned copy of this instance in a given allocation target.