[][src]Trait wasmparser::WasmFuncType

pub trait WasmFuncType {
    pub fn len_inputs(&self) -> usize;
pub fn len_outputs(&self) -> usize;
pub fn input_at(&self, at: u32) -> Option<Type>;
pub fn output_at(&self, at: u32) -> Option<Type>; pub fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>

Notable traits for WasmFuncTypeInputs<'_, T>

impl<T, '_> Iterator for WasmFuncTypeInputs<'_, T> where
    T: WasmFuncType
type Item = Type;

    where
        Self: Sized
, { ... }
pub fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>

Notable traits for WasmFuncTypeOutputs<'_, T>

impl<T, '_> Iterator for WasmFuncTypeOutputs<'_, T> where
    T: WasmFuncType
type Item = Type;

    where
        Self: Sized
, { ... } }

Types that qualify as Wasm function types for validation purposes.

Required methods

pub fn len_inputs(&self) -> usize[src]

Returns the number of input types.

pub fn len_outputs(&self) -> usize[src]

Returns the number of output types.

pub fn input_at(&self, at: u32) -> Option<Type>[src]

Returns the type at given index if any.

Note

The returned type may be wrapped by the user crate and thus the actually returned type only has to be comparable to a Wasm type.

pub fn output_at(&self, at: u32) -> Option<Type>[src]

Returns the type at given index if any.

Note

The returned type may be wrapped by the user crate and thus the actually returned type only has to be comparable to a Wasm type.

Loading content...

Provided methods

pub fn inputs(&self) -> WasmFuncTypeInputs<'_, Self>

Notable traits for WasmFuncTypeInputs<'_, T>

impl<T, '_> Iterator for WasmFuncTypeInputs<'_, T> where
    T: WasmFuncType
type Item = Type;
where
    Self: Sized
[src]

Returns the list of inputs as an iterator.

pub fn outputs(&self) -> WasmFuncTypeOutputs<'_, Self>

Notable traits for WasmFuncTypeOutputs<'_, T>

impl<T, '_> Iterator for WasmFuncTypeOutputs<'_, T> where
    T: WasmFuncType
type Item = Type;
where
    Self: Sized
[src]

Returns the list of outputs as an iterator.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized, '_> WasmFuncType for &'_ T where
    T: WasmFuncType
[src]

Loading content...

Implementors

impl WasmFuncType for FuncType[src]

Loading content...