luaur-bytecode 0.1.3

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_vm_const_kind::BcVmConstKind;
use crate::records::bc_vm_const::BcVmConst;

impl BcVmConst {
    pub fn new() -> Self {
        Self {
            kind: BcVmConstKind::Nil,
            value: unsafe { core::mem::zeroed() },
        }
    }
}

impl Default for BcVmConst {
    fn default() -> Self {
        Self::new()
    }
}