pub struct InstantiationCosts {
pub code_section_per_byte: CostOf<BytesAmount>,
pub data_section_per_byte: CostOf<BytesAmount>,
pub global_section_per_byte: CostOf<BytesAmount>,
pub table_section_per_byte: CostOf<BytesAmount>,
pub element_section_per_byte: CostOf<BytesAmount>,
pub type_section_per_byte: CostOf<BytesAmount>,
}
Expand description
Module instantiation costs.
Fields§
§code_section_per_byte: CostOf<BytesAmount>
WASM module code section instantiation per byte cost.
data_section_per_byte: CostOf<BytesAmount>
WASM module data section instantiation per byte cost.
global_section_per_byte: CostOf<BytesAmount>
WASM module global section instantiation per byte cost.
table_section_per_byte: CostOf<BytesAmount>
WASM module table section instantiation per byte cost.
element_section_per_byte: CostOf<BytesAmount>
WASM module element section instantiation per byte cost.
type_section_per_byte: CostOf<BytesAmount>
WASM module type section instantiation per byte cost.
Trait Implementations§
Source§impl Clone for InstantiationCosts
impl Clone for InstantiationCosts
Source§fn clone(&self) -> InstantiationCosts
fn clone(&self) -> InstantiationCosts
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 InstantiationCosts
impl Debug for InstantiationCosts
Source§impl Default for InstantiationCosts
impl Default for InstantiationCosts
Source§fn default() -> InstantiationCosts
fn default() -> InstantiationCosts
Returns the “default value” for a type. Read more
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.
Source§impl PartialEq for InstantiationCosts
impl PartialEq for InstantiationCosts
impl Eq for InstantiationCosts
impl StructuralPartialEq for InstantiationCosts
Auto Trait Implementations§
impl Freeze for InstantiationCosts
impl RefUnwindSafe for InstantiationCosts
impl Send for InstantiationCosts
impl Sync for InstantiationCosts
impl Unpin for InstantiationCosts
impl UnwindSafe for InstantiationCosts
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