luaur-bytecode 0.1.1

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::records::bc_function::BcFunction;
use crate::records::bc_inst::BcInst;
use crate::records::bc_ref::BcRef;

#[derive(Debug)]
pub struct BcInstHelper<'a> {
    pub(crate) graph: &'a mut BcFunction,
    pub(crate) inst: BcRef<'a, BcInst>,
}

impl<'a> BcInstHelper<'a> {
    pub(crate) fn new(graph: &'a mut BcFunction, inst: BcRef<'a, BcInst>) -> Self {
        Self { graph, inst }
    }
}