#[repr(i32)]pub enum LuaType {
None = -1,
Nil = 0,
Boolean = 1,
LightUserdata = 2,
Number = 3,
String = 4,
Table = 5,
Function = 6,
Userdata = 7,
Thread = 8,
}Expand description
Possible types for Lua values.
Can be obtained from LuaState::type_of.
Variants§
None = -1
(Returned for non-existing elements.)
Nil = 0
Boolean = 1
LightUserdata = 2
Number = 3
String = 4
Table = 5
Function = 6
Userdata = 7
Thread = 8
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaType
impl RefUnwindSafe for LuaType
impl Send for LuaType
impl Sync for LuaType
impl Unpin for LuaType
impl UnsafeUnpin for LuaType
impl UnwindSafe for LuaType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more