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

Function PyAnySet_CheckExact

python27-sys/src/setobject.rs:23–27  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

21
22#[inline]
23pub unsafe fn PyAnySet_CheckExact(ob: *mut PyObject) -> c_int {
24 let s: *mut PyTypeObject = &mut PySet_Type;
25 let f: *mut PyTypeObject = &mut PyFrozenSet_Type;
26 (Py_TYPE(ob) == s || Py_TYPE(ob) == f) as c_int
27}
28
29#[inline]
30pub unsafe fn PyAnySet_Check(ob: *mut PyObject) -> c_int {

Callers 1

PyAnySet_CheckFunction · 0.70

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected