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

Function trunc

crates/stdlib/src/math.rs:362–364  ·  view source on GitHub ↗
(x: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

360
361 #[pyfunction]
362 fn trunc(x: PyObjectRef, vm: &VirtualMachine) -> PyResult {
363 try_magic_method(identifier!(vm, __trunc__), vm, &x)
364 }
365
366 #[pyfunction]
367 fn ceil(x: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 1

check_stat_attributesMethod · 0.85

Calls 1

try_magic_methodFunction · 0.85

Tested by 1

check_stat_attributesMethod · 0.68