pub struct LuaGeneric { /* private fields */ }
Expand description
Represents a generic lua value on the Lua stack
Can represent any possible lua value, and can be converted to a usable value.
§Examples
context.push_integer(4);
let generic: LuaGeneric = context.get_arg(1).unwrap();
assert_eq!(Some(4), generic.get_value(&mut context));
Implementations§
Trait Implementations§
Source§impl FromLua for LuaGeneric
impl FromLua for LuaGeneric
Source§impl LuaStackable for LuaGeneric
impl LuaStackable for LuaGeneric
Auto Trait Implementations§
impl Freeze for LuaGeneric
impl RefUnwindSafe for LuaGeneric
impl Send for LuaGeneric
impl Sync for LuaGeneric
impl Unpin for LuaGeneric
impl UnwindSafe for LuaGeneric
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