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

Method traverse

crates/vm/src/object/core.rs:425–427  ·  view source on GitHub ↗

DO notice that call `trace` on `Py ` means apply `tracer_fn` on `Py `'s children, not like call `trace` on `PyRef ` which apply `tracer_fn` on `PyRef ` itself

(&self, tracer_fn: &mut TraverseFn<'_>)

Source from the content-addressed store, hash-verified

423 /// DO notice that call `trace` on `Py<T>` means apply `tracer_fn` on `Py<T>`'s children,
424 /// not like call `trace` on `PyRef<T>` which apply `tracer_fn` on `PyRef<T>` itself
425 fn traverse(&self, tracer_fn: &mut TraverseFn<'_>) {
426 self.0.traverse(tracer_fn)
427 }
428}
429
430unsafe impl Traverse for PyObject {

Callers 2

gc_get_referentsMethod · 0.45
gc_get_referent_ptrsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected