pub enum GcMode {
Refc,
ArcOrc,
Unknown,
}Expand description
Variants§
Refc
--mm:refc — traditional reference-counting GC (Nim 1.x default).
Indicated by the presence of legacy NTI_ RTTI globals.
ArcOrc
--mm:arc or --mm:orc — deterministic ARC with optional cycle
collector (Nim 2.x default). Indicated by NTIv2_ globals.
Unknown
Could not determine the GC mode (no RTTI symbols found, e.g. in a fully stripped binary).
Implementations§
Trait Implementations§
impl Copy for GcMode
impl Eq for GcMode
impl StructuralPartialEq for GcMode
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