Struct wasmedge_types::FuncType
source · pub struct FuncType { /* private fields */ }
Expand description
Struct of WasmEdge FuncType.
A FuncType is used to declare the types of the parameters and return values of a WasmEdge Func to be created.
Implementations§
source§impl FuncType
impl FuncType
sourcepub fn args(&self) -> Option<&[ValType]>
pub fn args(&self) -> Option<&[ValType]>
Returns the types of the arguments of a host function.
sourcepub fn returns(&self) -> Option<&[ValType]>
pub fn returns(&self) -> Option<&[ValType]>
Returns the types of the returns of a host function.
sourcepub fn returns_len(&self) -> u32
pub fn returns_len(&self) -> u32
Returns the number of the returns of a host function.