From 1020315a9b1f866cc96fb0228bb98ddf4fe78798 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Wed, 4 Aug 2021 12:12:02 +0100 Subject: [PATCH] Update documentation about `FromLua` for UserData. Closes #64 --- src/userdata.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/userdata.rs b/src/userdata.rs index 2e8ca8b..113725f 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -520,8 +520,10 @@ pub trait UserDataFields<'lua, T: UserData> { /// Trait for custom userdata types. /// -/// By implementing this trait, a struct becomes eligible for use inside Lua code. Implementations -/// of [`ToLua`] and [`FromLua`] are automatically provided. +/// By implementing this trait, a struct becomes eligible for use inside Lua code. +/// Implementation of [`ToLua`] is automatically provided, [`FromLua`] is implemented +/// only for `T: UserData + Clone`. +/// /// /// # Examples ///