Struct wasmer_runtime_core_fl::DynFunc[][src]

pub struct DynFunc<'a> { /* fields omitted */ }
Expand description

A representation of an exported WebAssembly function.

Implementations

Call an exported WebAssembly function safely.

Pass arguments by wrapping each one in the Value enum. The returned values are also each wrapped in a Value.

Note:

This returns CallResult<Vec<Value>> in order to support the future multi-value returns WebAssembly feature.

Usage:

instance
    .dyn_func("foo")?
    .call(&[])?;

Gets the signature of this Dynfunc.

Gets a const pointer to the function represent by this DynFunc.

Trait Implementations

Implementation of how to get the export corresponding to the implementing type from an [Instance] by name. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.

Should always be Self

Attempt to lookup self in the given table.

Wrap value to be stored in a table.

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.