pub struct BytecodeBuilder { /* private fields */ }Implementations§
Source§impl BytecodeBuilder
impl BytecodeBuilder
pub fn new() -> Self
pub fn position(&self) -> u32
pub fn finish(self) -> Vec<u8> ⓘ
pub fn nop(&mut self)
pub fn ret(&mut self)
pub fn ldc(&mut self, index: u32)
pub fn add(&mut self)
pub fn sub(&mut self)
pub fn mul(&mut self)
pub fn div(&mut self)
pub fn modulo(&mut self)
pub fn and(&mut self)
pub fn or(&mut self)
pub fn neg(&mut self)
pub fn not(&mut self)
pub fn ceq(&mut self)
pub fn clt(&mut self)
pub fn cgt(&mut self)
pub fn br(&mut self, target: u32)
pub fn brfalse(&mut self, target: u32)
pub fn pop(&mut self)
pub fn dup(&mut self)
pub fn ldloc(&mut self, index: u8)
pub fn stloc(&mut self, index: u8)
pub fn call(&mut self, index: u16, argc: u8)
pub fn shl(&mut self)
pub fn shr(&mut self)
pub fn lshr(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BytecodeBuilder
impl RefUnwindSafe for BytecodeBuilder
impl Send for BytecodeBuilder
impl Sync for BytecodeBuilder
impl Unpin for BytecodeBuilder
impl UnsafeUnpin for BytecodeBuilder
impl UnwindSafe for BytecodeBuilder
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