Struct wasmparser_nostd::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<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
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 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