pub struct CommonConfigOptions { /* private fields */ }
Expand description

Defines the common configuration options.

CommonConfigOptions is used to set the common configuration options, which are

Implementations§

Creates a new instance of CommonConfigOptions.

The default options are:

  • mutable_globals: true,
  • non_trap_conversions: true,
  • sign_extension_operators: true,
  • multi_value: true,
  • bulk_memory_operations: true,
  • reference_types: true,
  • simd: true,
  • multi_memories: false,
  • threads: false,
  • tail_call: false,
  • function_references: false,
  • interpreter_mode: false,

Enables or disables the ImportExportMutGlobals option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the NonTrapFloatToIntConversions option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the SignExtensionOperators option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the MultiValue option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the BulkMemoryOperations option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the ReferenceTypes option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the SIMD option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the MultiMemories option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the Threads option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the TailCall option.

Argument
  • enable specifies if the option turns on or not.

Enables or disables the FunctionReferences option.

Argument
  • enable - Whether the option turns on or not.

Enables or disables the ForceInterpreter option.

Argument
  • enable - Whether the option turns on or not.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Creates a new default instance of CommonConfigOptions.

The default options are:

  • mutable_globals: true,
  • non_trap_conversions: true,
  • sign_extension_operators: true,
  • multi_value: true,
  • bulk_memory_operations: true,
  • reference_types: true,
  • simd: true,
  • multi_memories: false,
  • threads: false,
  • tail_call: false,
  • function_references: false,
  • interpreter_mode: false,

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.