Trait wasmtime_environ::wasmparser::WasmFuncType
source · pub trait WasmFuncType: Clone {
// Required methods
fn len_inputs(&self) -> usize;
fn len_outputs(&self) -> usize;
fn input_at(&self, at: u32) -> Option<ValType>;
fn output_at(&self, at: u32) -> Option<ValType>;
// Provided methods
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self> ⓘ
where Self: Sized { ... }
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self> ⓘ
where Self: Sized { ... }
}
Expand description
Types that qualify as Wasm function types for validation purposes.
Required Methods§
sourcefn len_inputs(&self) -> usize
fn len_inputs(&self) -> usize
Returns the number of input types.
sourcefn len_outputs(&self) -> usize
fn len_outputs(&self) -> usize
Returns the number of output types.
Provided Methods§
sourcefn inputs(&self) -> WasmFuncTypeInputs<'_, Self> ⓘwhere
Self: Sized,
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self> ⓘwhere
Self: Sized,
Returns the list of inputs as an iterator.
sourcefn outputs(&self) -> WasmFuncTypeOutputs<'_, Self> ⓘwhere
Self: Sized,
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self> ⓘwhere
Self: Sized,
Returns the list of outputs as an iterator.
Object Safety§
This trait is not object safe.