Alias stub types to rust types where possible

This commit is contained in:
lumi 2025-06-25 23:16:42 +10:00
parent 2967513cbb
commit cbb47840e4
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -9,12 +9,12 @@ use std::{
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
pub mod stub_types { pub mod stub_types {
pub struct any; pub struct any;
pub struct nil; pub type nil = ();
pub struct boolean; pub type boolean = bool;
pub struct lightuserdata; pub type lightuserdata = *mut ();
pub struct number; pub type number = f64;
pub struct integer; pub type integer = i64;
pub struct string; pub type string = &'static str;
pub struct table; pub struct table;
pub struct function; pub struct function;
pub struct userdata; pub struct userdata;