pub struct InstantiationWeights {
pub code_section_per_byte: Weight,
pub data_section_per_byte: Weight,
pub global_section_per_byte: Weight,
pub table_section_per_byte: Weight,
pub element_section_per_byte: Weight,
pub type_section_per_byte: Weight,
}
Expand description
Describes the weight for instantiation of the module.
Fields§
§code_section_per_byte: Weight
WASM module code section instantiation per byte cost.
data_section_per_byte: Weight
WASM module data section instantiation per byte cost.
global_section_per_byte: Weight
WASM module global section instantiation per byte cost.
table_section_per_byte: Weight
WASM module table section instantiation per byte cost.
element_section_per_byte: Weight
WASM module element section instantiation per byte cost.
type_section_per_byte: Weight
WASM module type section instantiation per byte cost.
Trait Implementations§
Source§impl Clone for InstantiationWeights
impl Clone for InstantiationWeights
Source§fn clone(&self) -> InstantiationWeights
fn clone(&self) -> InstantiationWeights
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 InstantiationWeights
impl Debug for InstantiationWeights
Source§impl Default for InstantiationWeights
impl Default for InstantiationWeights
Source§impl From<InstantiationWeights> for InstantiationCosts
impl From<InstantiationWeights> for InstantiationCosts
Source§fn from(val: InstantiationWeights) -> Self
fn from(val: InstantiationWeights) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstantiationWeights
impl RefUnwindSafe for InstantiationWeights
impl Send for InstantiationWeights
impl Sync for InstantiationWeights
impl Unpin for InstantiationWeights
impl UnwindSafe for InstantiationWeights
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