Skip to main content

luaur_bytecode/records/
bc_inst_helper.rs

1use crate::records::bc_function::BcFunction;
2use crate::records::bc_inst::BcInst;
3use crate::records::bc_ref::BcRef;
4
5#[derive(Debug)]
6pub struct BcInstHelper<'a> {
7    pub(crate) graph: &'a mut BcFunction,
8    pub(crate) inst: BcRef<'a, BcInst>,
9}
10
11impl<'a> BcInstHelper<'a> {
12    pub(crate) fn new(graph: &'a mut BcFunction, inst: BcRef<'a, BcInst>) -> Self {
13        Self { graph, inst }
14    }
15}