Trait wasmtime_environ::wasmparser::WasmFuncType
source · [−]pub trait WasmFuncType {
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>;
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>ⓘNotable traits for WasmFuncTypeInputs<'_, T>impl<T> Iterator for WasmFuncTypeInputs<'_, T>where
T: WasmFuncType, type Item = ValType;
{ ... }
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>ⓘNotable traits for WasmFuncTypeOutputs<'_, T>impl<T> Iterator for WasmFuncTypeOutputs<'_, T>where
T: WasmFuncType, type Item = ValType;
{ ... }
}
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>ⓘNotable traits for WasmFuncTypeInputs<'_, T>impl<T> Iterator for WasmFuncTypeInputs<'_, T>where
T: WasmFuncType, type Item = ValType;
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>ⓘNotable traits for WasmFuncTypeInputs<'_, T>impl<T> Iterator for WasmFuncTypeInputs<'_, T>where
T: WasmFuncType, type Item = ValType;
T: WasmFuncType, type Item = ValType;
Returns the list of inputs as an iterator.
sourcefn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>ⓘNotable traits for WasmFuncTypeOutputs<'_, T>impl<T> Iterator for WasmFuncTypeOutputs<'_, T>where
T: WasmFuncType, type Item = ValType;
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>ⓘNotable traits for WasmFuncTypeOutputs<'_, T>impl<T> Iterator for WasmFuncTypeOutputs<'_, T>where
T: WasmFuncType, type Item = ValType;
T: WasmFuncType, type Item = ValType;
Returns the list of outputs as an iterator.