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

Function invert

crates/vm/src/stdlib/_operator.rs:94–96  ·  view source on GitHub ↗
(pos: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

92
93 #[pyfunction]
94 fn invert(pos: PyObjectRef, vm: &VirtualMachine) -> PyResult {
95 vm._invert(&pos)
96 }
97
98 #[pyfunction]
99 fn lshift(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

_invertMethod · 0.80

Tested by

no test coverage detected