pub struct LuaLightUserData(pub *mut c_void);Expand description
A “light” userdata value. Equivalent to an unmanaged raw pointer.
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<'lua> FromLua<'lua> for LightUserData
impl<'lua> FromLua<'lua> 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
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,
impl<T> Erased for T
Source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
Source§fn from_lua_multi(
values: MultiValue<'lua>,
lua: Context<'lua>,
) -> Result<T, Error>
fn from_lua_multi( values: MultiValue<'lua>, lua: Context<'lua>, ) -> Result<T, Error>
Performs the conversion. Read more
Source§impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
Source§fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
Performs the conversion.