pub struct GrowExact;
Expand description
Growth behavior which never requests extra capacity
Trait Implementations§
Source§impl Grow for GrowExact
impl Grow for GrowExact
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 GrowExact
impl Ord for GrowExact
Source§impl PartialOrd for GrowExact
impl PartialOrd for GrowExact
impl Copy for GrowExact
impl Eq for GrowExact
impl StructuralPartialEq for GrowExact
Auto Trait Implementations§
impl Freeze for GrowExact
impl RefUnwindSafe for GrowExact
impl Send for GrowExact
impl Sync for GrowExact
impl Unpin for GrowExact
impl UnwindSafe for GrowExact
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.