pub type ErlNifResourceDtor = Option<unsafe extern "C" fn(arg1: *mut ErlNifEnv, arg2: *mut c_void)>;