pub enum Type {
None = -1,
Nil = 0,
Boolean = 1,
LightUserdata = 2,
Number = 3,
String = 4,
Table = 5,
Function = 6,
Userdata = 7,
Thread = 8,
Count = 9,
}Expand description
Lua basic type enumeration.
Variants§
None = -1
“Pseudo-type” that indicates that there’s nothing somewhere.
Nil = 0
nil.
Boolean = 1
Boolean - true and false.
LightUserdata = 2
Light userdata - plain pointer.
Number = 3
Number, which can also mean “integer”.
String = 4
Garbage-collected string.
Table = 5
Table.
Function = 6
Function, which can mean a Lua function or a C function.
Userdata = 7
Full userdata - garbage-collected pointer.
Thread = 8
Thread - a Lua state, or coroutine.
Count = 9
Lua type count.
Implementations§
Trait Implementations§
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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