pub unsafe extern "C" fn tolstring(
state: lua_State,
index: i32,
len: &mut usize,
) -> *const u8Expand description
Converts the Lua value at the given acceptable index to a C string.
If len is not NULL, it also sets *len with the string length.
The Lua value must be a string or a number; otherwise, the function returns NULL.
If the value is a number, then tolstring also changes the actual value in the stack to a string.