pub enum MemoryGrowCost {
Linear(NonZeroU32),
}
Expand description
Dynamic costs for memory growth.
Variants§
Linear(NonZeroU32)
Charge the specified amount for each page that the memory is grown by.
Trait Implementations§
Source§impl Clone for MemoryGrowCost
impl Clone for MemoryGrowCost
Source§fn clone(&self) -> MemoryGrowCost
fn clone(&self) -> MemoryGrowCost
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 MemoryGrowCost
impl Debug for MemoryGrowCost
Source§impl PartialEq for MemoryGrowCost
impl PartialEq for MemoryGrowCost
impl Copy for MemoryGrowCost
impl Eq for MemoryGrowCost
impl StructuralPartialEq for MemoryGrowCost
Auto Trait Implementations§
impl Freeze for MemoryGrowCost
impl RefUnwindSafe for MemoryGrowCost
impl Send for MemoryGrowCost
impl Sync for MemoryGrowCost
impl Unpin for MemoryGrowCost
impl UnwindSafe for MemoryGrowCost
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