MCPcopy Index your code
hub / github.com/RustPython/RustPython / isenabled

Function isenabled

crates/vm/src/stdlib/gc.rs:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 /// Return true if automatic gc is enabled.
37 #[pyfunction]
38 fn isenabled() -> bool {
39 gc_state::gc_state().is_enabled()
40 }
41
42 /// Run a garbage collection. Returns the number of unreachable objects found.
43 #[derive(FromArgs)]

Callers

nothing calls this directly

Calls 2

gc_stateFunction · 0.85
is_enabledMethod · 0.80

Tested by

no test coverage detected