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
Source§fn clone(&self) -> LightUserData
fn clone(&self) -> LightUserData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn eq(&self, other: &LightUserData) -> bool
fn eq(&self, other: &LightUserData) -> bool
Tests for
self and other values to be equal, and is used by ==.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 Freeze 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.
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.