pub struct Context {
pub instructions: Vec<Instruction>,
pub loop_stack: Vec<usize>,
pub label_map: Vec<Option<usize>>,
pub user_defined_label: HashMap<String, usize>,
pub functions: Vec<FunctionInfo>,
}Fields§
§instructions: Vec<Instruction>§loop_stack: Vec<usize>this stack holds the break label of the current loop
label_map: Vec<Option<usize>>label_type -> instruction index map
user_defined_label: HashMap<String, usize>user defined label -> label_type map
functions: Vec<FunctionInfo>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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