pub struct RegistryKey { /* private fields */ }Expand description
An owned reference to a value stored in the Lua registry.
Mirrors mlua::RegistryKey. Cloning produces another handle to the same
stored value (the slot is shared via Rc). The value stays alive until the
last clone is dropped or it is explicitly removed.
Under the send feature it is Send but never Sync — see
[crate::sync::NotSync].
Trait Implementations§
Source§impl Clone for RegistryKey
impl Clone for RegistryKey
Source§fn clone(&self) -> RegistryKey
fn clone(&self) -> RegistryKey
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 moreSource§impl Debug for RegistryKey
impl Debug for RegistryKey
impl Eq for RegistryKey
Source§impl FromLua for RegistryKey
impl FromLua for RegistryKey
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 RegistryKey
impl Hash for RegistryKey
Source§impl IntoLua for RegistryKey
impl IntoLua for RegistryKey
Source§impl IntoLua for &RegistryKey
impl IntoLua for &RegistryKey
Source§impl PartialEq for RegistryKey
impl PartialEq for RegistryKey
Auto Trait Implementations§
impl !RefUnwindSafe for RegistryKey
impl !Send for RegistryKey
impl !Sync for RegistryKey
impl !UnwindSafe for RegistryKey
impl Freeze for RegistryKey
impl Unpin for RegistryKey
impl UnsafeUnpin for RegistryKey
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.