pub enum LuaValue {
Nil,
Boolean(bool),
Integer(i64),
Number(f64),
Str(String),
Table(Rc<LuaTable>),
Function(Rc<Closure>),
}
Variants§
Implementations§
Source§impl LuaValue
impl LuaValue
pub fn from_const(val: &Constant) -> Self
pub fn convert_to_boolean(&self) -> bool
pub fn convert_to_integer(&self) -> Option<i64>
pub fn convert_to_float(&self) -> Option<f64>
Trait Implementations§
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