Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ neg
Function
neg
crates/vm/src/stdlib/_operator.rs:119–121 ·
view source on GitHub ↗
(pos: PyObjectRef, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
117
118
#[pyfunction]
119
fn neg(pos: PyObjectRef, vm: &VirtualMachine) -> PyResult {
120
vm._neg(&pos)
121
}
122
123
#[pyfunction]
124
fn or_(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
Callers
nothing calls this directly
Calls
1
_neg
Method · 0.80
Tested by
no test coverage detected