pub enum GcMode {
Incremental(GcIncParams),
Generational(GcGenParams),
}Expand description
The GC operating mode, mirroring mlua::state::GcMode.
Luau only supports GcMode::Incremental; GcMode::Generational is
provided for signature parity and is treated as a no-op by Lua::gc_set_mode.
Variants§
Incremental(GcIncParams)
Incremental GC (the only mode Luau supports).
Generational(GcGenParams)
Generational GC — not supported by Luau (see the module note).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcMode
impl RefUnwindSafe for GcMode
impl Send for GcMode
impl Sync for GcMode
impl Unpin for GcMode
impl UnsafeUnpin for GcMode
impl UnwindSafe for GcMode
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