pub fn gc_state() -> &'static GcStateExpand description
Get a reference to the GC state.
In threading mode this is a true global (OnceLock). In non-threading mode this is thread-local, because PyRwLock/PyMutex use Cell-based locks that are not Sync.