Trait wasmparser::WasmFuncType[][src]

pub trait WasmFuncType {
    fn len_inputs(&self) -> usize;
fn len_outputs(&self) -> usize;
fn input_at(&self, at: u32) -> Option<Type>;
fn output_at(&self, at: u32) -> Option<Type>; 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
, { ... }
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
, { ... } }
Expand description

Types that qualify as Wasm function types for validation purposes.

Required methods

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

Expand description

Returns the number of input types.

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

Expand description

Returns the number of output types.

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

Expand description

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.

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

Expand description

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.

Provided methods

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]

Expand description

Returns the list of inputs as an iterator.

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]

Expand description

Returns the list of outputs as an iterator.

Implementations on Foreign Types

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

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

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

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

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

Implementors

impl WasmFuncType for FuncType[src]

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

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

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

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