Expand description
Lua userdata handling.
This module provides types for creating and working with Lua userdata from Rust.
Structs§
- AnyUser
Data - Handle to an internal Lua userdata for any type that implements
UserData. - User
Data Metatable - Handle to a
AnyUserDatametatable. - User
Data Metatable Pairs - An iterator over the pairs of a
AnyUserDatametatable. - User
Data Owned - A wrapper type that takes ownership of a userdata value.
- User
Data Ref - A wrapper type for a userdata value that provides read access.
- User
Data RefMut - A wrapper type for a userdata value that provides read and write access.
- User
Data Registry - Handle to registry for userdata methods and metamethods.
Enums§
- Meta
Method - Kinds of metamethods that can be overridden.
Traits§
- User
Data - Trait for custom userdata types.
- User
Data Fields - Field registry for
UserDataimplementors. - User
Data Methods - Method registry for
UserDataimplementors.