Struct wasm_smith::ConfiguredModule[][src]

pub struct ConfiguredModule<C> where
    C: Config
{ /* fields omitted */ }
Expand description

A pseudo-random generated WebAssembly file with custom configuration.

If you don’t care about custom configuration, use Module instead.

For details on configuring, see the Config trait.

Implementations

Encode this Wasm module into bytes.

Ensure that all of this Wasm module’s functions will terminate when executed.

This adds a new mutable, exported global to the module to keep track of how much “fuel” is left. Fuel is decremented at the head of each loop and function. When fuel reaches zero, a trap is raised.

The index of the fuel global is returned, so that you may control how much fuel the module is given.

Returns a reference to the internal configuration.

Creates a new ConfiguredModule with the specified config for configuration and Unstructured for the DNA of this module.

Trait Implementations

Generate an arbitrary value of Self from the given unstructured data. Read more

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.