Trait UserData
lua::userdata
pub trait UserData { const METATABLE: &'static str; fn register(meta: &mut MetaTable) { ... } }
Type to implement Lua userdata, which is an arbitrary block of memory managed by Lua
const METATABLE: &'static str
Name of the metatable
fn register(meta: &mut MetaTable)
Called only once to register the metamethods of the type.