pub enum LabeledInstr<B> {
Labeled(usize, Instr<Name, B>),
Unlabeled(Instr<Name, B>),
}Expand description
By default each jump or goto just contains a usize offset into
the instruction vector. This representation is efficient but hard
to work with, so we support mapping this representation into one
where any instruction can have an explicit label, and jumps point
to those explicit labels, and then going back to the offset based
representation for execution.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for LabeledInstr<B>
impl<B> RefUnwindSafe for LabeledInstr<B>
impl<B> Send for LabeledInstr<B>
impl<B> Sync for LabeledInstr<B>
impl<B> Unpin for LabeledInstr<B>
impl<B> UnwindSafe for LabeledInstr<B>
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