Enum tlua::AnyLuaValue
source · [−]pub enum AnyLuaValue {
LuaString(String),
LuaAnyString(AnyLuaString),
LuaNumber(f64),
LuaBoolean(bool),
LuaArray(Vec<(AnyLuaValue, AnyLuaValue)>),
LuaNil,
LuaOther,
}Expand description
Represents any value that can be stored by Lua
Variants
LuaString(String)
LuaAnyString(AnyLuaString)
LuaNumber(f64)
LuaBoolean(bool)
LuaArray(Vec<(AnyLuaValue, AnyLuaValue)>)
LuaNil
LuaOther
The “Other” element is (hopefully) temporary and will be replaced by “Function” and “Userdata”. A panic! will trigger if you try to push a Other.
Trait Implementations
sourceimpl Clone for AnyLuaValue
impl Clone for AnyLuaValue
sourcefn clone(&self) -> AnyLuaValue
fn clone(&self) -> AnyLuaValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AnyLuaValue
impl Debug for AnyLuaValue
sourceimpl<L: AsLua> LuaRead<L> for AnyLuaValue
impl<L: AsLua> LuaRead<L> for AnyLuaValue
sourcefn lua_read_at_position(lua: L, index: NonZeroI32) -> Result<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> Result<Self, L>
Reads the data from Lua at a given position.
fn n_values_expected() -> i32
fn lua_read_at_maybe_zero_position(lua: L, index: i32) -> Result<Self, L>
sourceimpl PartialEq<AnyLuaValue> for AnyLuaValue
impl PartialEq<AnyLuaValue> for AnyLuaValue
sourcefn eq(&self, other: &AnyLuaValue) -> bool
fn eq(&self, other: &AnyLuaValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AnyLuaValue) -> bool
fn ne(&self, other: &AnyLuaValue) -> bool
This method tests for !=.
sourceimpl<L: AsLua> Push<L> for AnyLuaValue
impl<L: AsLua> Push<L> for AnyLuaValue
sourceimpl<L: AsLua> PushInto<L> for AnyLuaValue
impl<L: AsLua> PushInto<L> for AnyLuaValue
impl<L: AsLua> PushOne<L> for AnyLuaValue
impl<L: AsLua> PushOneInto<L> for AnyLuaValue
impl StructuralPartialEq for AnyLuaValue
Auto Trait Implementations
impl RefUnwindSafe for AnyLuaValue
impl Send for AnyLuaValue
impl Sync for AnyLuaValue
impl Unpin for AnyLuaValue
impl UnwindSafe for AnyLuaValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more