pub struct WasmOptions {
Show 28 fields pub nan_canonicalization: Option<bool>, pub fuel: Option<u64>, pub epoch_interruption: Option<bool>, pub max_wasm_stack: Option<usize>, pub unknown_exports_allow: Option<bool>, pub unknown_imports_trap: Option<bool>, pub unknown_imports_default: Option<bool>, pub wmemcheck: Option<bool>, pub max_memory_size: Option<usize>, pub max_table_elements: Option<u32>, pub max_instances: Option<usize>, pub max_tables: Option<usize>, pub max_memories: Option<usize>, pub trap_on_grow_failure: Option<bool>, pub timeout: Option<Duration>, pub all_proposals: Option<bool>, pub bulk_memory: Option<bool>, pub multi_memory: Option<bool>, pub multi_value: Option<bool>, pub reference_types: Option<bool>, pub simd: Option<bool>, pub relaxed_simd: Option<bool>, pub relaxed_simd_deterministic: Option<bool>, pub tail_call: Option<bool>, pub threads: Option<bool>, pub memory64: Option<bool>, pub component_model: Option<bool>, pub function_references: Option<bool>,
}

Fields§

§nan_canonicalization: Option<bool>§fuel: Option<u64>§epoch_interruption: Option<bool>§max_wasm_stack: Option<usize>§unknown_exports_allow: Option<bool>§unknown_imports_trap: Option<bool>§unknown_imports_default: Option<bool>§wmemcheck: Option<bool>§max_memory_size: Option<usize>§max_table_elements: Option<u32>§max_instances: Option<usize>§max_tables: Option<usize>§max_memories: Option<usize>§trap_on_grow_failure: Option<bool>§timeout: Option<Duration>§all_proposals: Option<bool>§bulk_memory: Option<bool>§multi_memory: Option<bool>§multi_value: Option<bool>§reference_types: Option<bool>§simd: Option<bool>§relaxed_simd: Option<bool>§relaxed_simd_deterministic: Option<bool>§tail_call: Option<bool>§threads: Option<bool>§memory64: Option<bool>§component_model: Option<bool>§function_references: Option<bool>

Trait Implementations§

source§

impl Debug for WasmOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for WasmOptions

source§

fn default() -> WasmOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.