Struct module_generation::ModuleGeneratorOptions
source · [−]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: usizeThe maximum number of locals that can be defined within a generated function definition.
max_fields: usizeThe maximum number of fields that will be generated for any struct.
min_fields: usizemax_structs: usizeThe maximum number of structs that can be generated for a module
max_functions: usizeThe maximum number of functions that can be generated for a module.
max_ty_params: usizeThe maximum number of type parameters functions and structs.
byte_array_max_size: usizeThe maximum size that generated byte arrays can be.
max_string_size: usizeThe maximum size that a generated string can be.
max_function_call_size: usizeThe maximum number of arguments to generated function definitions.
max_ret_types_size: usizeThe maximum number of return types of generated function definitions.
simple_types_only: boolWhether or not generate modules should only contain simple (non-reference, or nested struct) types.
references_allowed: boolWhether references are allowed to be generated for e.g. function parameters, locals.
add_resources: boolWhether the generated modules should have any resources declared.
min_table_size: usizeThe minimum number of entries in any table
args_for_ty_params: boolIf set, all functions with type parameters will have arguments of those types as well.
Trait Implementations
sourceimpl Clone for ModuleGeneratorOptions
impl Clone for ModuleGeneratorOptions
sourcefn clone(&self) -> ModuleGeneratorOptions
fn clone(&self) -> ModuleGeneratorOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ModuleGeneratorOptions
impl Debug for ModuleGeneratorOptions
Auto Trait Implementations
impl RefUnwindSafe for ModuleGeneratorOptions
impl Send for ModuleGeneratorOptions
impl Sync for ModuleGeneratorOptions
impl Unpin for ModuleGeneratorOptions
impl UnwindSafe for ModuleGeneratorOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more