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

Method new_complex

crates/vm/src/vm/context.rs:509–511  ·  view source on GitHub ↗
(&self, value: Complex64)

Source from the content-addressed store, hash-verified

507
508 #[inline]
509 pub fn new_complex(&self, value: Complex64) -> PyRef<PyComplex> {
510 PyComplex::from(value).into_ref(self)
511 }
512
513 #[inline]
514 pub fn latin1_char(&self, ch: u8) -> PyRef<PyStr> {

Callers 3

from_numberMethod · 0.45
clone_exactMethod · 0.45
make_constantMethod · 0.45

Calls 1

into_refMethod · 0.45

Tested by

no test coverage detected