Struct wasmparser_nostd::FuncType
source · [−]pub struct FuncType { /* private fields */ }
Expand description
Represents a type of a function in a WebAssembly module.
Implementations
sourceimpl FuncType
impl FuncType
Trait Implementations
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;
where
Self: Sized,
fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>ⓘNotable traits for WasmFuncTypeInputs<'_, T>impl<T> Iterator for WasmFuncTypeInputs<'_, T>where
T: WasmFuncType, type Item = ValType;
where
Self: Sized,
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;
where
Self: Sized,
fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>ⓘNotable traits for WasmFuncTypeOutputs<'_, T>impl<T> Iterator for WasmFuncTypeOutputs<'_, T>where
T: WasmFuncType, type Item = ValType;
where
Self: Sized,
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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