Function lua_touserdata

Source
pub fn lua_touserdata(l: LuaState, idx: c_int) -> *mut c_void
Expand description

Returns the value at the given index assuming it is a userdata.

ยงReturns

If the value at the given acceptable index is a full userdata, returns its block address. If the value is a light userdata, returns its pointer. Otherwise, returns std::ptr::null_mut().