Update documentation about `FromLua` for UserData. Closes #64
This commit is contained in:
parent
628b70f561
commit
1020315a9b
|
@ -520,8 +520,10 @@ pub trait UserDataFields<'lua, T: UserData> {
|
||||||
|
|
||||||
/// Trait for custom userdata types.
|
/// Trait for custom userdata types.
|
||||||
///
|
///
|
||||||
/// By implementing this trait, a struct becomes eligible for use inside Lua code. Implementations
|
/// By implementing this trait, a struct becomes eligible for use inside Lua code.
|
||||||
/// of [`ToLua`] and [`FromLua`] are automatically provided.
|
/// Implementation of [`ToLua`] is automatically provided, [`FromLua`] is implemented
|
||||||
|
/// only for `T: UserData + Clone`.
|
||||||
|
///
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue