Struct wasmtime_environ::wasm::wasmparser::FuncType
source · [−]Fields
params: Box<[Type], Global>
returns: Box<[Type], Global>
Trait Implementations
sourceimpl TryFrom<FuncType> for WasmFuncType
impl TryFrom<FuncType> for WasmFuncType
sourceimpl WasmFuncType for FuncType
impl WasmFuncType for FuncType
sourcepub fn len_inputs(&self) -> usize
pub fn len_inputs(&self) -> usize
Returns the number of input types.
sourcepub fn len_outputs(&self) -> usize
pub fn len_outputs(&self) -> usize
Returns the number of output types.
sourcepub fn input_at(&self, at: u32) -> Option<Type>
pub fn input_at(&self, at: u32) -> Option<Type>
Returns the type at given index if any. Read more
sourcepub fn output_at(&self, at: u32) -> Option<Type>
pub fn output_at(&self, at: u32) -> Option<Type>
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 = Type;
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>ⓘNotable traits for WasmFuncTypeInputs<'_, T>impl<'_, T> Iterator for WasmFuncTypeInputs<'_, T> where
T: WasmFuncType, type Item = Type;
T: WasmFuncType, type Item = Type;
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 = Type;
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>ⓘNotable traits for WasmFuncTypeOutputs<'_, T>impl<'_, T> Iterator for WasmFuncTypeOutputs<'_, T> where
T: WasmFuncType, type Item = Type;
T: WasmFuncType, type Item = Type;
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
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,
sourcepub fn equivalent(&self, key: &K) -> bool
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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