pub fn new_state() -> Option<LuaState>Expand description
Create a new independent Lua state. Returns None only on OOM.
The C API takes a custom allocator (f, ud); the Rust-native API uses
the global Rust allocator instead, so those parameters are dropped.
Equivalent to LuaState::new() at the call site.