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.
Trait Implementations§
source§impl PartialEq for FuncType
impl PartialEq for FuncType
impl Eq for FuncType
impl StructuralEq for FuncType
impl StructuralPartialEq for FuncType
Auto Trait Implementations§
impl RefUnwindSafe for FuncType
impl Send for FuncType
impl Sync for FuncType
impl Unpin for FuncType
impl UnwindSafe for FuncType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more