Struct cranelift_wasm::wasmparser::FuncType
source · pub struct FuncType { /* private fields */ }
Expand description
Represents a type of a function in a WebAssembly module.
Implementations§
source§impl FuncType
impl FuncType
Trait Implementations§
source§impl<'a> FromReader<'a> for FuncType
impl<'a> FromReader<'a> for FuncType
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<FuncType, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<FuncType, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.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<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.