pub unsafe extern "C" fn get_type(state: lua_State, index: i32) -> i32
Expand description
Returns the type of the value in the given valid index, or LUA_TNONE
for a non-valid (but acceptable) index.
The types returned by get_type
(lua_type
) are coded by the following constants defined in lua.h: LUA_TNIL
(0), LUA_TNUMBER, LUA_TBOOLEAN, LUA_TSTRING, LUA_TTABLE, LUA_TFUNCTION, LUA_TUSERDATA, LUA_TTHREAD,
and LUA_TLIGHTUSERDATA
.