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

Function compact_int_from_obj

crates/vm/src/frame.rs:1123–1126  ·  view source on GitHub ↗
(obj: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1121
1122#[inline]
1123fn compact_int_from_obj(obj: &PyObject, vm: &VirtualMachine) -> Option<isize> {
1124 obj.downcast_ref_if_exact::<PyInt>(vm)
1125 .and_then(|i| specialization_compact_int_value(i, vm))
1126}
1127
1128#[inline]
1129fn exact_float_from_obj(obj: &PyObject, vm: &VirtualMachine) -> Option<f64> {

Callers 4

compactlongs_guardFunction · 0.85
float_compactlong_guardFunction · 0.85
compactlong_float_guardFunction · 0.85

Calls 1

Tested by

no test coverage detected