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

Function PyIter_Check

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

Source from the content-addressed store, hash-verified

114#[cfg(not(Py_3_8))]
115#[inline]
116pub unsafe fn PyIter_Check(o: *mut PyObject) -> c_int {
117 (match (*(*o).ob_type).tp_iternext {
118 Some(tp_iternext) => {
119 tp_iternext as *const c_void
120 != crate::object::_PyObject_NextNotImplemented as *const c_void
121 }
122 None => false,
123 }) as c_int
124}
125
126#[cfg_attr(windows, link(name = "pythonXY"))]
127extern "C" {

Callers 1

from_objectMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected