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

Function f64_try_into_from_object

crates/stdlib/src/array.rs:552–554  ·  view source on GitHub ↗
(vm: &VirtualMachine, obj: PyObjectRef)

Source from the content-addressed store, hash-verified

550 }
551
552 fn f64_try_into_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<f64> {
553 ArgIntoFloat::try_from_object(vm, obj).map(|x| x.into_float())
554 }
555
556 fn pyfloat_from_f32(value: f32) -> PyFloat {
557 PyFloat::from(value as f64)

Callers

nothing calls this directly

Calls 2

into_floatMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected