pub enum Instruction {
Plain(Instruction),
Call(EntryRef<Func>),
CallIndirect(EntryRef<Type>, u8),
GetGlobal(EntryRef<Global>),
SetGlobal(EntryRef<Global>),
}
Expand description
Instruction.
Some instructions don’t reference any entities within the WebAssembly module, while others do. This enum is for tracking references when required.
Variants§
Plain(Instruction)
WebAssembly instruction that does not reference any module entities.
Call(EntryRef<Func>)
Call instruction which references the function.
CallIndirect(EntryRef<Type>, u8)
Indirect call instruction which references function type (function signature).
GetGlobal(EntryRef<Global>)
get_global instruction which references the global.
SetGlobal(EntryRef<Global>)
set_global instruction which references the global.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instruction
impl !RefUnwindSafe for Instruction
impl !Send for Instruction
impl !Sync for Instruction
impl Unpin for Instruction
impl !UnwindSafe for Instruction
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