luaur-common 0.1.2

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Token {
    pub(crate) name: *const core::ffi::c_char,
    pub(crate) category: *const core::ffi::c_char,
}

unsafe impl Send for Token {}
unsafe impl Sync for Token {}

impl Default for Token {
    fn default() -> Self {
        Self {
            name: core::ptr::null(),
            category: core::ptr::null(),
        }
    }
}