Struct wiggle::wasmtime_crate::FuncType [−][src]
pub struct FuncType { /* fields omitted */ }
Expand description
A descriptor for a function in a WebAssembly module.
WebAssembly functions can have 0 or more parameters and results.
Implementations
pub fn new(
params: impl IntoIterator<Item = ValType>,
results: impl IntoIterator<Item = ValType>
) -> FuncType
pub fn new(
params: impl IntoIterator<Item = ValType>,
results: impl IntoIterator<Item = ValType>
) -> FuncType
Creates a new function descriptor from the given parameters and results.
The function descriptor returned will represent a function which takes
params
as arguments and returns results
when it is finished.
Returns the list of parameter types for this function.
Returns the list of result types for this function.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for FuncType
impl UnwindSafe for FuncType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more