Skip to main content

to_lua_string

Function to_lua_string 

Source
pub fn to_lua_string(
    state: &mut LuaState,
    idx: i32,
) -> Result<Vec<u8>, LuaError>
Expand description

Convert the value at idx to a byte-string representation (using __tostring if available) and push it onto the stack.

Tables/functions/userdata/threads print as "kind: 0x?" — a fixed placeholder rather than a real address, since this API surface does not yet expose a stable per-value identifier analogous to C’s lua_topointer.