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

Function PyAnySet_CheckExact

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

Source from the content-addressed store, hash-verified

23
24#[inline]
25pub unsafe fn PyAnySet_CheckExact(ob: *mut PyObject) -> c_int {
26 (Py_TYPE(ob) == &mut PySet_Type || Py_TYPE(ob) == &mut PyFrozenSet_Type) 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