Struct juicebox_asm::prelude::Label
source · pub struct Label { /* private fields */ }
Expand description
A label which is used as target for jump instructions.
use juicebox_asm::prelude::*;
let mut lbl = Label::new();
let mut asm = Asm::new();
// Skip the mov instruction.
asm.jmp(&mut lbl);
asm.mov(Reg64::rax, Reg64::rax);
asm.bind(&mut lbl);
Panics
Panics if the label is dropped while not yet bound, or having unresolved relocations. This is mainly a safety-guard to detect wrong usage.