pub fn register_module_as(lua: &Lua, name: &str) -> Result<()>Expand description
Register the Lua API table under a caller-selected global name.
This is the dehardcoding valve for hosts that want a different namespace.
name is used as a direct key in Lua::globals; dotted names such as
"foo.bar" are not parsed into nested tables.
ยงErrors
Returns an error if name is empty or if creating or assigning the module
table fails.