luaur-bytecode 0.1.2

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::records::bc_op::BcOp;
use alloc::vec::Vec;

#[derive(Debug)]
pub struct BcRef<'a, T> {
    pub(crate) vec: &'a Vec<T>,
    pub(crate) op: BcOp,
}

impl<'a, T> Clone for BcRef<'a, T> {
    fn clone(&self) -> Self {
        *self
    }
}

impl<'a, T> Copy for BcRef<'a, T> {}