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

Function f32_try_into_from_object

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

Source from the content-addressed store, hash-verified

546 }
547
548 fn f32_try_into_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<f32> {
549 ArgIntoFloat::try_from_object(vm, obj).map(|x| x.into_float() as f32)
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())

Callers

nothing calls this directly

Calls 2

into_floatMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected