Struct cranelift_wasm::wasmparser::FuncType
source · pub struct FuncType {
pub params: Box<[ValType], Global>,
pub returns: Box<[ValType], Global>,
}
Expand description
Represents a type of a function in a WebAssembly module.
Fields§
§params: Box<[ValType], Global>
The function parameter types.
returns: Box<[ValType], Global>
The function result types.
Trait Implementations§
source§impl PartialEq<FuncType> for FuncType
impl PartialEq<FuncType> for FuncType
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 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
source§fn 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
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.