pub struct Function { /* private fields */ }Implementations§
Source§impl Function
impl Function
pub fn name(&self) -> &str
pub const fn func_type(&self) -> &FunctionType
pub const fn type_ref(&self) -> u32
pub fn params(&self) -> &[ValueType]
pub fn param_count(&self) -> u32
pub const fn return_type(&self) -> Option<ValueType>
pub const fn is_imported(&self) -> bool
pub fn locals(&self) -> &[ValueType]
pub fn instructions(&self) -> &[Instruction]
Trait Implementations§
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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