luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use alloc::string::String;

#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash)]
pub struct StringSingleton {
    pub value: String,
}

#[allow(non_snake_case)]
impl StringSingleton {
    pub const fn new(value: String) -> Self {
        Self { value }
    }
}

unsafe impl Send for StringSingleton {}
unsafe impl Sync for StringSingleton {}