#[repr(C)]pub struct NativeContext {Show 73 fields
pub gateEntry: *mut u8,
pub gateExit: *mut u8,
pub luaV_lessthan: Option<unsafe extern "C" fn(L: *mut lua_State, l: *const TValue, r: *const TValue) -> c_int>,
pub luaV_lessequal: Option<unsafe extern "C" fn(L: *mut lua_State, l: *const TValue, r: *const TValue) -> c_int>,
pub luaV_equalval: Option<unsafe extern "C" fn(L: *mut lua_State, t1: *const TValue, t2: *const TValue) -> c_int>,
pub luaV_doarithadd: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithsub: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithmul: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithdiv: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithidiv: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithmod: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithpow: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_doarithunm: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>,
pub luaV_dolen: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue)>,
pub luaV_gettable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *const TValue, key: *mut TValue, val: StkId)>,
pub luaV_settable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *const TValue, key: *mut TValue, val: StkId)>,
pub luaV_concat: Option<unsafe extern "C" fn(L: *mut lua_State, total: c_int, last: c_int)>,
pub luaH_getn: Option<unsafe extern "C" fn(t: *mut c_void) -> c_int>,
pub luaH_new: Option<unsafe extern "C" fn(L: *mut lua_State, narray: c_int, lnhash: c_int) -> *mut c_void>,
pub luaH_clone: Option<unsafe extern "C" fn(L: *mut lua_State, tt: *mut c_void) -> *mut c_void>,
pub luaH_resizearray: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, nasize: c_int)>,
pub luaH_setnum: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, key: c_int) -> *mut TValue>,
pub luaC_barriertable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, v: *mut c_void)>,
pub luaC_barrierf: Option<unsafe extern "C" fn(L: *mut lua_State, o: *mut c_void, v: *mut c_void)>,
pub luaC_barrierback: Option<unsafe extern "C" fn(L: *mut lua_State, o: *mut c_void, gclist: *mut *mut c_void)>,
pub luaC_step: Option<unsafe extern "C" fn(L: *mut lua_State, assist: bool) -> usize>,
pub luaF_close: Option<unsafe extern "C" fn(L: *mut lua_State, level: StkId)>,
pub luaF_findupval: Option<unsafe extern "C" fn(L: *mut lua_State, level: StkId) -> *mut c_void>,
pub luaF_newLclosure: Option<unsafe extern "C" fn(L: *mut lua_State, nelems: c_int, e: *mut c_void, p: *mut c_void) -> *mut c_void>,
pub luaT_gettm: Option<unsafe extern "C" fn(events: *mut c_void, event: TMS, ename: *mut c_void) -> *const TValue>,
pub luaT_objtypenamestr: Option<unsafe extern "C" fn(L: *mut lua_State, o: *const TValue) -> *const c_void>,
pub libm_exp: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_pow: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>,
pub libm_fmod: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>,
pub libm_asin: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_sin: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_sinh: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_acos: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_cos: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_cosh: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_atan: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_atan2: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>,
pub libm_tan: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_tanh: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_log: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_log2: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_log10: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_ldexp: Option<unsafe extern "C" fn(c_double, c_int) -> c_double>,
pub libm_round: Option<unsafe extern "C" fn(c_double) -> c_double>,
pub libm_frexp: Option<unsafe extern "C" fn(c_double, *mut c_int) -> c_double>,
pub libm_modf: Option<unsafe extern "C" fn(c_double, *mut c_double) -> c_double>,
pub forgLoopTableIter: Option<unsafe extern "C" fn(L: *mut lua_State, h: *mut c_void, index: c_int, ra: *mut TValue) -> bool>,
pub forgLoopNodeIter: Option<unsafe extern "C" fn(L: *mut lua_State, h: *mut c_void, index: c_int, ra: *mut TValue) -> bool>,
pub forgLoopNonTableFallback: Option<unsafe extern "C" fn(L: *mut lua_State, insnA: c_int, aux: c_int) -> c_int>,
pub forgLoopNonTableFallback_DEPRECATED: Option<unsafe extern "C" fn(L: *mut lua_State, insnA: c_int, aux: c_int) -> bool>,
pub forgPrepXnextFallback: Option<unsafe extern "C" fn(L: *mut lua_State, ra: *mut TValue, pc: c_int)>,
pub callProlog: Option<unsafe extern "C" fn(L: *mut lua_State, ra: *mut TValue, argtop: StkId, nresults: c_int) -> *mut c_void>,
pub callEpilogC: Option<unsafe extern "C" fn(L: *mut lua_State, nresults: c_int, n: c_int)>,
pub newUserdata: Option<unsafe extern "C" fn(L: *mut lua_State, s: usize, tag: c_int) -> *mut c_void>,
pub getImport: Option<unsafe extern "C" fn(L: *mut lua_State, res: StkId, id: c_uint, pc: c_uint)>,
pub callFallback: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, argtop: StkId, nresults: c_int) -> *mut c_void>,
pub executeGETGLOBAL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeSETGLOBAL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeGETTABLEKS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeSETTABLEKS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeNAMECALL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeSETLIST: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeFORGPREP: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executeGETVARARGSMultRet: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, rai: c_int)>,
pub executeGETVARARGSConst: Option<unsafe extern "C" fn(L: *mut lua_State, base: StkId, rai: c_int, b: c_int)>,
pub executeDUPCLOSURE: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub executePREPVARARGS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>,
pub luauF_table: [luau_fast_function; 256],
}Fields§
§gateEntry: *mut u8§gateExit: *mut u8§luaV_lessthan: Option<unsafe extern "C" fn(L: *mut lua_State, l: *const TValue, r: *const TValue) -> c_int>§luaV_lessequal: Option<unsafe extern "C" fn(L: *mut lua_State, l: *const TValue, r: *const TValue) -> c_int>§luaV_equalval: Option<unsafe extern "C" fn(L: *mut lua_State, t1: *const TValue, t2: *const TValue) -> c_int>§luaV_doarithadd: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithsub: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithmul: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithdiv: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithidiv: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithmod: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithpow: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_doarithunm: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue, rc: *const TValue)>§luaV_dolen: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, rb: *const TValue)>§luaV_gettable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *const TValue, key: *mut TValue, val: StkId)>§luaV_settable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *const TValue, key: *mut TValue, val: StkId)>§luaV_concat: Option<unsafe extern "C" fn(L: *mut lua_State, total: c_int, last: c_int)>§luaH_getn: Option<unsafe extern "C" fn(t: *mut c_void) -> c_int>§luaH_new: Option<unsafe extern "C" fn(L: *mut lua_State, narray: c_int, lnhash: c_int) -> *mut c_void>§luaH_clone: Option<unsafe extern "C" fn(L: *mut lua_State, tt: *mut c_void) -> *mut c_void>§luaH_resizearray: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, nasize: c_int)>§luaH_setnum: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, key: c_int) -> *mut TValue>§luaC_barriertable: Option<unsafe extern "C" fn(L: *mut lua_State, t: *mut c_void, v: *mut c_void)>§luaC_barrierf: Option<unsafe extern "C" fn(L: *mut lua_State, o: *mut c_void, v: *mut c_void)>§luaC_barrierback: Option<unsafe extern "C" fn(L: *mut lua_State, o: *mut c_void, gclist: *mut *mut c_void)>§luaC_step: Option<unsafe extern "C" fn(L: *mut lua_State, assist: bool) -> usize>§luaF_close: Option<unsafe extern "C" fn(L: *mut lua_State, level: StkId)>§luaF_findupval: Option<unsafe extern "C" fn(L: *mut lua_State, level: StkId) -> *mut c_void>§luaF_newLclosure: Option<unsafe extern "C" fn(L: *mut lua_State, nelems: c_int, e: *mut c_void, p: *mut c_void) -> *mut c_void>§luaT_gettm: Option<unsafe extern "C" fn(events: *mut c_void, event: TMS, ename: *mut c_void) -> *const TValue>§luaT_objtypenamestr: Option<unsafe extern "C" fn(L: *mut lua_State, o: *const TValue) -> *const c_void>§libm_exp: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_pow: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>§libm_fmod: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>§libm_asin: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_sin: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_sinh: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_acos: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_cos: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_cosh: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_atan: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_atan2: Option<unsafe extern "C" fn(c_double, c_double) -> c_double>§libm_tan: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_tanh: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_log: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_log2: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_log10: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_ldexp: Option<unsafe extern "C" fn(c_double, c_int) -> c_double>§libm_round: Option<unsafe extern "C" fn(c_double) -> c_double>§libm_frexp: Option<unsafe extern "C" fn(c_double, *mut c_int) -> c_double>§libm_modf: Option<unsafe extern "C" fn(c_double, *mut c_double) -> c_double>§forgLoopTableIter: Option<unsafe extern "C" fn(L: *mut lua_State, h: *mut c_void, index: c_int, ra: *mut TValue) -> bool>§forgLoopNodeIter: Option<unsafe extern "C" fn(L: *mut lua_State, h: *mut c_void, index: c_int, ra: *mut TValue) -> bool>§forgLoopNonTableFallback: Option<unsafe extern "C" fn(L: *mut lua_State, insnA: c_int, aux: c_int) -> c_int>§forgLoopNonTableFallback_DEPRECATED: Option<unsafe extern "C" fn(L: *mut lua_State, insnA: c_int, aux: c_int) -> bool>§forgPrepXnextFallback: Option<unsafe extern "C" fn(L: *mut lua_State, ra: *mut TValue, pc: c_int)>§callProlog: Option<unsafe extern "C" fn(L: *mut lua_State, ra: *mut TValue, argtop: StkId, nresults: c_int) -> *mut c_void>§callEpilogC: Option<unsafe extern "C" fn(L: *mut lua_State, nresults: c_int, n: c_int)>§newUserdata: Option<unsafe extern "C" fn(L: *mut lua_State, s: usize, tag: c_int) -> *mut c_void>§getImport: Option<unsafe extern "C" fn(L: *mut lua_State, res: StkId, id: c_uint, pc: c_uint)>§callFallback: Option<unsafe extern "C" fn(L: *mut lua_State, ra: StkId, argtop: StkId, nresults: c_int) -> *mut c_void>§executeGETGLOBAL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeSETGLOBAL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeGETTABLEKS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeSETTABLEKS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeNAMECALL: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeSETLIST: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeFORGPREP: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executeGETVARARGSMultRet: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, rai: c_int)>§executeGETVARARGSConst: Option<unsafe extern "C" fn(L: *mut lua_State, base: StkId, rai: c_int, b: c_int)>§executeDUPCLOSURE: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§executePREPVARARGS: Option<unsafe extern "C" fn(L: *mut lua_State, pc: *const u32, base: StkId, k: *mut TValue) -> *const u32>§luauF_table: [luau_fast_function; 256]Trait Implementations§
Source§impl Clone for NativeContext
impl Clone for NativeContext
Source§fn clone(&self) -> NativeContext
fn clone(&self) -> NativeContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeContext
Source§impl Debug for NativeContext
impl Debug for NativeContext
Auto Trait Implementations§
impl !Send for NativeContext
impl !Sync for NativeContext
impl Freeze for NativeContext
impl RefUnwindSafe for NativeContext
impl Unpin for NativeContext
impl UnsafeUnpin for NativeContext
impl UnwindSafe for NativeContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more