pub struct ModuleGeneratorOptions {
Show 15 fields pub max_locals: usize, pub max_fields: usize, pub min_fields: usize, pub max_structs: usize, pub max_functions: usize, pub max_ty_params: usize, pub byte_array_max_size: usize, pub max_string_size: usize, pub max_function_call_size: usize, pub max_ret_types_size: usize, pub simple_types_only: bool, pub references_allowed: bool, pub add_resources: bool, pub min_table_size: usize, pub args_for_ty_params: bool,
}

Fields§

§max_locals: usize

The maximum number of locals that can be defined within a generated function definition.

§max_fields: usize

The maximum number of fields that will be generated for any struct.

§min_fields: usize§max_structs: usize

The maximum number of structs that can be generated for a module

§max_functions: usize

The maximum number of functions that can be generated for a module.

§max_ty_params: usize

The maximum number of type parameters functions and structs.

§byte_array_max_size: usize

The maximum size that generated byte arrays can be.

§max_string_size: usize

The maximum size that a generated string can be.

§max_function_call_size: usize

The maximum number of arguments to generated function definitions.

§max_ret_types_size: usize

The maximum number of return types of generated function definitions.

§simple_types_only: bool

Whether or not generate modules should only contain simple (non-reference, or nested struct) types.

§references_allowed: bool

Whether references are allowed to be generated for e.g. function parameters, locals.

§add_resources: bool

Whether the generated modules should have any resources declared.

§min_table_size: usize

The minimum number of entries in any table

§args_for_ty_params: bool

If set, all functions with type parameters will have arguments of those types as well.

Trait Implementations§

source§

impl Clone for ModuleGeneratorOptions

source§

fn clone(&self) -> ModuleGeneratorOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ModuleGeneratorOptions

source§

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

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

impl Default for ModuleGeneratorOptions

source§

fn default() -> Self

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V