Function tointeger

Source
pub unsafe extern "C" fn tointeger(
    state: lua_State,
    index: i32,
) -> isize
Expand description

Converts the Lua value at the given acceptable index to the signed integral type lua_Integer. The Lua value must be a number or a string convertible to a number (see §2.2.1); otherwise, tointeger (lua_tointeger) returns 0.