pub enum LuaValue {
Map(BTreeMap<LuaMapKey, LuaValue>),
Array(Vec<LuaValue>),
String(String),
Number(f64),
Boolean(bool),
Null,
}Expand description
A tagged union representing all possible values in Lua.
Variants§
Map(BTreeMap<LuaMapKey, LuaValue>)
Array(Vec<LuaValue>)
String(String)
Number(f64)
Boolean(bool)
Null
Trait Implementations§
impl Eq for LuaValue
Source§impl Ord for LuaValue
impl Ord for LuaValue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for LuaValue
impl RefUnwindSafe for LuaValue
impl Send for LuaValue
impl Sync for LuaValue
impl Unpin for LuaValue
impl UnsafeUnpin 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