From be64706cff6f374c7e17b9a9d04378a510503483 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 14 Apr 2023 10:29:34 +0100 Subject: [PATCH] Missing doc for OwnedAnyUserData --- src/userdata.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/userdata.rs b/src/userdata.rs index c623fda..d5770ca 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -739,6 +739,7 @@ impl Serialize for UserDataSerializeError { #[derive(Clone, Debug)] pub struct AnyUserData<'lua>(pub(crate) LuaRef<'lua>); +/// Owned handle to an internal Lua userdata. #[cfg(feature = "unstable")] #[cfg_attr(docsrs, doc(cfg(feature = "unstable")))] #[derive(Clone, Debug)] @@ -1031,6 +1032,7 @@ impl<'lua> AnyUserData<'lua> { } } + /// Convert this handle to owned version. #[cfg(all(feature = "unstable", any(not(feature = "send"), doc)))] #[cfg_attr(docsrs, doc(cfg(all(feature = "unstable", not(feature = "send")))))] #[inline]