Enum gear_pwasm_utils::rules::MemoryGrowCost
source · 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 copy 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
source§fn eq(&self, other: &MemoryGrowCost) -> bool
fn eq(&self, other: &MemoryGrowCost) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryGrowCost
impl Eq for MemoryGrowCost
impl StructuralEq for MemoryGrowCost
impl StructuralPartialEq for MemoryGrowCost
Auto Trait Implementations§
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