Struct wasmtime_environ::wasmparser::FuncType
source · [−]Expand description
Represents a type of a function in a WebAssembly module.
Fields
params: Box<[ValType], Global>
The function parameter types.
returns: Box<[ValType], Global>
The function result types.
Trait Implementations
sourceimpl TryFrom<FuncType> for WasmFuncType
impl TryFrom<FuncType> for WasmFuncType
sourceimpl WasmFuncType for FuncType
impl WasmFuncType for FuncType
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.
sourcefn input_at(&self, at: u32) -> Option<ValType>
fn input_at(&self, at: u32) -> Option<ValType>
Returns the type at given index if any. Read more
sourcefn output_at(&self, at: u32) -> Option<ValType>
fn output_at(&self, at: u32) -> Option<ValType>
Returns the type at given index if any. Read more
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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more