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

Function PySet_Check

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

Source from the content-addressed store, hash-verified

35
36#[inline]
37pub unsafe fn PySet_Check(ob: *mut PyObject) -> c_int {
38 let s: *mut PyTypeObject = &mut PySet_Type;
39 (Py_TYPE(ob) == s || PyType_IsSubtype(Py_TYPE(ob), s) != 0) as c_int
40}
41
42#[inline]
43pub unsafe fn PyFrozenSet_Check(ob: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected