Skip to main content

NativeContext

Struct NativeContext 

Source
#[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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for NativeContext

Source§

impl Debug for NativeContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NativeContext

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.