Alias stub types to rust types where possible
This commit is contained in:
parent
2967513cbb
commit
cbb47840e4
@ -9,12 +9,12 @@ use std::{
|
||||
#[allow(non_camel_case_types)]
|
||||
pub mod stub_types {
|
||||
pub struct any;
|
||||
pub struct nil;
|
||||
pub struct boolean;
|
||||
pub struct lightuserdata;
|
||||
pub struct number;
|
||||
pub struct integer;
|
||||
pub struct string;
|
||||
pub type nil = ();
|
||||
pub type boolean = bool;
|
||||
pub type lightuserdata = *mut ();
|
||||
pub type number = f64;
|
||||
pub type integer = i64;
|
||||
pub type string = &'static str;
|
||||
pub struct table;
|
||||
pub struct function;
|
||||
pub struct userdata;
|
||||
|
Loading…
x
Reference in New Issue
Block a user