summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-04-14 10:29:34 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-04-14 10:29:34 +0100
commitbe64706cff6f374c7e17b9a9d04378a510503483 (patch)
tree71512c8c5bdb646a711ae92d6df5691016aa22cf
parentc178bc0a5538b4ce5a41d787e0d8c1c9343d70e8 (diff)
downloadmlua-be64706cff6f374c7e17b9a9d04378a510503483.zip
Missing doc for OwnedAnyUserData
-rw-r--r--src/userdata.rs2
1 files changed, 2 insertions, 0 deletions
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]