pub struct LightUserData(pub *mut c_void);Expand description
A Lua light userdata: an opaque raw pointer value. Mirrors
mlua::LightUserData.
Tuple Fields§
§0: *mut c_voidTrait Implementations§
Source§impl Clone for LightUserData
impl Clone for LightUserData
impl Copy for LightUserData
Source§impl Debug for LightUserData
impl Debug for LightUserData
impl Eq for LightUserData
Source§impl FromLua for LightUserData
impl FromLua for LightUserData
Source§fn from_lua_arg(
arg: Value,
_i: usize,
_to: Option<&str>,
lua: &Lua,
) -> Result<Self>
fn from_lua_arg( arg: Value, _i: usize, _to: Option<&str>, lua: &Lua, ) -> Result<Self>
Convert an argument at 1-based position
i. The default forwards to
FromLua::from_lua; specific impls can produce nicer messages.
Mirrors mlua::FromLua::from_lua_arg.Source§impl Hash for LightUserData
impl Hash for LightUserData
Source§impl IntoLua for LightUserData
impl IntoLua for LightUserData
Source§impl PartialEq for LightUserData
impl PartialEq for LightUserData
impl StructuralPartialEq for LightUserData
Source§impl TypeMetatable for LightUserData
impl TypeMetatable for LightUserData
Auto Trait Implementations§
impl !Send for LightUserData
impl !Sync for LightUserData
impl Forget for LightUserData
impl Freeze for LightUserData
impl Move for LightUserData
impl RefUnwindSafe for LightUserData
impl Unpin for LightUserData
impl UnsafeUnpin for LightUserData
impl UnwindSafe for LightUserData
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§impl<T> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Perform the conversion.
unsafe fn from_stack_multi(base: i32, nvals: i32, lua: &Lua) -> Result<T, Error>
Source§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Perform the conversion.