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

Method __reduce__

crates/vm/src/builtins/str.rs:344–352  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

342
343 #[pymethod]
344 fn __reduce__(&self, vm: &VirtualMachine) -> PyTupleRef {
345 let func = builtins_iter(vm);
346 self.internal.lock().0.reduce(
347 func,
348 |x| x.clone().into(),
349 |vm| vm.ctx.empty_str.to_owned().into(),
350 vm,
351 )
352 }
353}
354
355impl SelfIter for PyStrIterator {}

Callers

nothing calls this directly

Calls 5

builtins_iterFunction · 0.85
reduceMethod · 0.45
lockMethod · 0.45
cloneMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected