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
16
17
use crate::enums::bc_op_kind::BcOpKind;
use luaur_common::records::dense_hash_table::DenseDefault;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct BcOp {
    pub kind: BcOpKind,
    pub index: u32,
}

impl DenseDefault for BcOp {
    fn dense_default() -> Self {
        Self {
            kind: BcOpKind::None,
            index: 0,
        }
    }
}