#[non_exhaustive]pub struct GcIncParams {
pub pause: Option<c_int>,
pub goal: Option<c_int>,
pub step_multiplier: Option<c_int>,
pub step_size: Option<c_int>,
}Expand description
Tuning parameters for the incremental GC collector.
More information can be found in the Lua documentation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pause: Option<c_int>Available on non-crate feature
luau only.Pause between successive GC cycles, expressed as a percentage of live memory.
goal: Option<c_int>Available on crate feature
luau only.Target heap size as a percentage of live data, controlling how aggressively
the GC reclaims memory (LUA_GCSETGOAL).
step_multiplier: Option<c_int>GC work performed per unit of memory allocated.
step_size: Option<c_int>Available on crate features
lua55 or lua54 or luau only.Granularity of each GC step (see Lua reference for details).
Implementations§
Source§impl GcIncParams
impl GcIncParams
Trait Implementations§
Source§impl Clone for GcIncParams
impl Clone for GcIncParams
Source§fn clone(&self) -> GcIncParams
fn clone(&self) -> GcIncParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcIncParams
impl Debug for GcIncParams
Source§impl Default for GcIncParams
impl Default for GcIncParams
Source§fn default() -> GcIncParams
fn default() -> GcIncParams
Returns the “default value” for a type. Read more
impl Copy for GcIncParams
Auto Trait Implementations§
impl Freeze for GcIncParams
impl RefUnwindSafe for GcIncParams
impl Send for GcIncParams
impl Sync for GcIncParams
impl Unpin for GcIncParams
impl UnsafeUnpin for GcIncParams
impl UnwindSafe for GcIncParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more