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

Method clone_exact

crates/vm/src/builtins/complex.rs:502–504  ·  view source on GitHub ↗
(zelf: &Py<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

500 }
501
502 fn clone_exact(zelf: &Py<Self>, vm: &VirtualMachine) -> PyRef<Self> {
503 vm.ctx.new_complex(zelf.value)
504 }
505}
506
507impl Representable for PyComplex {

Callers

nothing calls this directly

Calls 1

new_complexMethod · 0.45

Tested by

no test coverage detected