Struct wasmtime_environ::wasmparser::FuncType
source · pub struct FuncType { /* private fields */ }
Expand description
Represents a type of a function in a WebAssembly module.
Implementations§
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 for FuncType
impl PartialEq 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 StructuralPartialEq for FuncType
Auto Trait Implementations§
impl Freeze for FuncType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.