pub unsafe fn with_state<F, R>(fun: F) -> Rwhere F: FnOnce(*mut State) -> R,
Executes a function with access to the Lua state.
NOTE: this will segfault if the Lua state has not been initialized by calling init.
init