Skip to main content

test_udata

Function test_udata 

Source
pub fn test_udata(
    state: &mut LuaState,
    ud: i32,
    tname: &[u8],
) -> Result<Option<GcRef<LuaUserData>>, LuaError>
Expand description

Check whether the value at ud is a full userdata with metatable tname. Returns Some(userdata) if yes, None otherwise.