Update documentation about `FromLua` for UserData. Closes #64

This commit is contained in:
Alex Orlenko 2021-08-04 12:12:02 +01:00
parent 628b70f561
commit 1020315a9b
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 4 additions and 2 deletions

View File

@ -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
///