Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ Py_REFCNT
Function
Py_REFCNT
python3-sys/src/object.rs:39–41 ·
view source on GitHub ↗
(ob: *mut PyObject)
Source
from the content-addressed store, hash-verified
37
38
#[inline(always)]
39
pub unsafe fn Py_REFCNT(ob: *mut PyObject) -> Py_ssize_t {
40
(*ob).ob_refcnt
41
}
42
43
#[inline(always)]
44
pub unsafe fn Py_TYPE(ob: *mut PyObject) -> *mut PyTypeObject {
Callers
1
get_refcnt
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected