[−][src]Struct mlua::RegistryKey
An auto generated key into the Lua registry.
This is a handle to a value stored inside the Lua registry. It is not automatically
garbage collected on Drop, but it can be removed with Lua::remove_registry_value,
and instances not manually removed can be garbage collected with Lua::expire_registry_values.
Be warned, If you place this into Lua via a UserData type or a rust callback, it is very
easy to accidentally cause reference cycles that the Lua garbage collector cannot resolve.
Instead of placing a RegistryKey into a UserData type, prefer instead to use
UserData::set_user_value / UserData::get_user_value.
Trait Implementations
impl Debug for RegistryKey[src]
impl Drop for RegistryKey[src]
Auto Trait Implementations
impl RefUnwindSafe for RegistryKey[src]
impl Send for RegistryKey[src]
impl Sync for RegistryKey[src]
impl Unpin for RegistryKey[src]
impl UnwindSafe for RegistryKey[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,