MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyIndex_Check

Function PyIndex_Check

python3-sys/src/objectabstract.rs:154–157  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

152#[cfg(all(not(Py_LIMITED_API), not(Py_3_8)))]
153#[inline]
154pub unsafe fn PyIndex_Check(o: *mut PyObject) -> c_int {
155 let tp_as_number = (*(*o).ob_type).tp_as_number;
156 (!tp_as_number.is_null() && (*tp_as_number).nb_index.is_some()) as c_int
157}
158
159#[cfg_attr(windows, link(name = "pythonXY"))]
160extern "C" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected