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)]
|
#[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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user