pub enum LuaType {
Nil,
Boolean,
Number,
String,
Table,
Function,
}Expand description
The runtime type of a Lua value, as exposed to host code via State.
Variants§
Nil
nil
Boolean
true or false
Number
IEEE-754 double-precision number
String
Interned UTF-8 string (or arbitrary byte string)
Table
Mutable Lua table (array + hash, with optional metatable)
Function
Lua closure or host-provided RustFunc
Implementations§
Trait Implementations§
impl Eq for LuaType
impl StructuralPartialEq for LuaType
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.