Struct FuncType
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§
§impl FuncType
impl FuncType
pub fn args(&self) -> &[ValType]
pub fn args(&self) -> &[ValType]
Returns the types of the arguments of a host function.
pub fn returns(&self) -> &[ValType]
pub fn returns(&self) -> &[ValType]
Returns the types of the returns of a host function.
pub fn returns_len(&self) -> usize
pub fn returns_len(&self) -> usize
Returns the number of the returns of a host function.
Trait Implementations§
impl Eq for FuncType
impl StructuralPartialEq for FuncType
Auto Trait Implementations§
impl Freeze for FuncType
impl RefUnwindSafe for FuncType
impl Send for FuncType
impl Sync for FuncType
impl Unpin for FuncType
impl UnsafeUnpin 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