pub struct Function {
pub symbol: u32,
pub locals: Vec<(u32, ValType)>,
pub code: Vec<u8>,
pub fixups: Vec<Fixup>,
pub export: Option<String>,
}Expand description
A function that this object defines.
Fields§
§symbol: u32The index of its symbol, which is a function symbol.
locals: Vec<(u32, ValType)>The locals after the parameters, as runs of one type.
code: Vec<u8>The instructions, with the end that closes the body.
fixups: Vec<Fixup>§export: Option<String>A name for the export section of this object, from export_name.
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.