pub enum LuaValue {
Nil,
Boolean(bool),
Number(LuaNumber),
String(Vec<u8>),
Table(Rc<RefCell<LuaTable>>),
Function(Rc<RefCell<LuaFunction>>),
UserData(Rc<RefCell<LuaUserData>>),
Thread(Rc<RefCell<LuaThread>>),
}Variants§
Nil
Boolean(bool)
Number(LuaNumber)
String(Vec<u8>)
Table(Rc<RefCell<LuaTable>>)
Function(Rc<RefCell<LuaFunction>>)
UserData(Rc<RefCell<LuaUserData>>)
Thread(Rc<RefCell<LuaThread>>)
Implementations§
Trait Implementations§
source§impl From<LuaFunction> for LuaValue
impl From<LuaFunction> for LuaValue
source§fn from(f: LuaFunction) -> Self
fn from(f: LuaFunction) -> Self
Converts to this type from the input type.
impl Eq for LuaValue
Auto Trait Implementations§
impl Freeze for LuaValue
impl !RefUnwindSafe for LuaValue
impl !Send for LuaValue
impl !Sync for LuaValue
impl Unpin for LuaValue
impl !UnwindSafe for LuaValue
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.