pub struct FuncType {
pub params: Box<[Type]>,
pub results: Box<[Type]>,
}
Expand description
Represents a wasmtime::component::Func
type.
Fields§
§params: Box<[Type]>
The func’s parameters.
results: Box<[Type]>
The func’s results.
Trait Implementations§
source§impl WasmFunc for FuncType
impl WasmFunc for FuncType
source§fn params(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
fn params(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
Returns an iterator of the func’s parameter types.
source§fn results(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
fn results(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
Returns an iterator of the func’s result types.
Auto Trait Implementations§
impl Freeze for FuncType
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