Skip to main content

RawGlobalState

Struct RawGlobalState 

Source
pub struct RawGlobalState {
Show 42 fields pub string_table: StringTable, pub current_white: u8, pub gc_state: u8, pub gray: *mut RawGcObject, pub gray_again: *mut RawGcObject, pub weak: *mut RawGcObject, pub gc_threshold: usize, pub total_bytes: usize, pub gc_goal: i32, pub gc_step_mul: i32, pub gc_step_size: i32, pub free_pages: [*mut RawLuaPage; 40], pub free_gco_pages: [*mut RawLuaPage; 40], pub all_pages: *mut RawLuaPage, pub all_gco_pages: *mut RawLuaPage, pub sweep_gco_page: *mut RawLuaPage, pub main_thread: *mut RawLuaState, pub uv_head: RawUpVal, pub mt: [*mut RawLuaTable; 14], pub tt_name: [*mut RawTString; 14], pub tm_name: [*mut RawTString; 21], pub pseudo_temp: RawTValue, pub registry: RawTValue, pub registry_free: i32, pub protected_error: *mut LuaProtectedErrorFrame, pub rng_state: u64, pub ptr_enc_key: [u64; 4], pub cb: LuaCallbacks, pub ecb: LuaExecutionCallbacks, pub ecb_data: ExecutionCallbackStorage, pub userdata_direct: [LuaUserdataDirectAccessData; 130], pub memcat_bytes: [usize; 256], pub userdata_gc: [Option<LuaDestructor>; 128], pub userdata_mark: [Option<LuaUserdataMark>; 128], pub userdata_mt: [*mut RawLuaTable; 128], pub weak_registry: RawTValue, pub weak_registry_free: i32, pub embedder_gc: Option<EmbedderGc>, pub light_userdata_name: [*mut RawTString; 128], pub userdata_direct_fields: [*mut RawLuaTable; 130], pub gc_stats: GcStats, pub last_proto_id: u32, /* private fields */
}

Fields§

§string_table: StringTable§current_white: u8§gc_state: u8§gray: *mut RawGcObject§gray_again: *mut RawGcObject§weak: *mut RawGcObject§gc_threshold: usize§total_bytes: usize§gc_goal: i32§gc_step_mul: i32§gc_step_size: i32§free_pages: [*mut RawLuaPage; 40]§free_gco_pages: [*mut RawLuaPage; 40]§all_pages: *mut RawLuaPage§all_gco_pages: *mut RawLuaPage§sweep_gco_page: *mut RawLuaPage§main_thread: *mut RawLuaState§uv_head: RawUpVal§mt: [*mut RawLuaTable; 14]§tt_name: [*mut RawTString; 14]§tm_name: [*mut RawTString; 21]§pseudo_temp: RawTValue§registry: RawTValue§registry_free: i32§protected_error: *mut LuaProtectedErrorFrame§rng_state: u64§ptr_enc_key: [u64; 4]§cb: LuaCallbacks§ecb: LuaExecutionCallbacks§ecb_data: ExecutionCallbackStorage§userdata_direct: [LuaUserdataDirectAccessData; 130]§memcat_bytes: [usize; 256]§userdata_gc: [Option<LuaDestructor>; 128]§userdata_mark: [Option<LuaUserdataMark>; 128]§userdata_mt: [*mut RawLuaTable; 128]§weak_registry: RawTValue§weak_registry_free: i32§embedder_gc: Option<EmbedderGc>§light_userdata_name: [*mut RawTString; 128]§userdata_direct_fields: [*mut RawLuaTable; 130]§gc_stats: GcStats§last_proto_id: u32

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> 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, 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.