pub struct Jump {
pub reg: Reg,
pub pc: usize,
pub true_jumps: Vec<usize>,
pub false_jumps: Vec<usize>,
pub reg_should_move: Option<u32>,
}
Fields§
§reg: Reg
§pc: usize
§true_jumps: Vec<usize>
§false_jumps: Vec<usize>
§reg_should_move: Option<u32>
Implementations§
Source§impl Jump
impl Jump
pub fn new(reg: Reg, pc: usize) -> Self
pub fn free(&self, context: &mut ProtoContext)
pub fn free_reg(&self, context: &mut ProtoContext)
pub fn inverse_cond(&self, context: &mut ProtoContext)
pub fn concat_true_jumps(&mut self, other: &mut Jump)
pub fn concat_false_jumps(&mut self, other: &mut Jump)
pub fn set_reg_should_move(&mut self, from: u32)
Auto Trait Implementations§
impl Freeze for Jump
impl RefUnwindSafe for Jump
impl Send for Jump
impl Sync for Jump
impl Unpin for Jump
impl UnwindSafe for Jump
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