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

Function PyAnySet_Check

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

Source from the content-addressed store, hash-verified

28
29#[inline]
30pub unsafe fn PyAnySet_Check(ob: *mut PyObject) -> c_int {
31 (PyAnySet_CheckExact(ob) != 0
32 || PyType_IsSubtype(Py_TYPE(ob), &mut PySet_Type) != 0
33 || PyType_IsSubtype(Py_TYPE(ob), &mut PyFrozenSet_Type) != 0) as c_int
34}
35
36#[inline]
37pub unsafe fn PySet_Check(ob: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 2

PyAnySet_CheckExactFunction · 0.70
Py_TYPEFunction · 0.70

Tested by

no test coverage detected