Struct cranelift_wasm::wasmparser::FuncType
source · Expand description
Represents a type of a function in a WebAssembly module.
Fields§
§params: Box<[Type], Global>
The function parameter types.
returns: Box<[Type], Global>
The function result types.
Trait Implementations§
source§impl TryFrom<FuncType> for WasmFuncType
impl TryFrom<FuncType> for WasmFuncType
source§impl WasmFuncType for FuncType
impl WasmFuncType for FuncType
source§fn len_inputs(&self) -> usize
fn len_inputs(&self) -> usize
Returns the number of input types.
source§fn len_outputs(&self) -> usize
fn len_outputs(&self) -> usize
Returns the number of output types.
source§fn output_at(&self, at: u32) -> Option<Type>
fn output_at(&self, at: u32) -> Option<Type>
Returns the type at given index if any. Read more
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§
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.