lua-types 0.7.1

omniLua's core Lua value and error types — internal crate; depend on `omnilua`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `Instruction` — a single packed bytecode word. C-Lua uses `u32`.

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[repr(transparent)]
pub struct Instruction(pub u32);

impl Instruction {
    pub const fn new(raw: u32) -> Self {
        Instruction(raw)
    }
    pub const fn raw(self) -> u32 {
        self.0
    }
}