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

Function PyUnicode_CheckExact

python27-sys/src/unicodeobject.rs:44–47  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

42
43#[inline(always)]
44pub unsafe fn PyUnicode_CheckExact(op: *mut PyObject) -> c_int {
45 let u: *mut PyTypeObject = &mut PyUnicode_Type;
46 (Py_TYPE(op) == u) as c_int
47}
48
49#[inline(always)]
50pub unsafe fn PyUnicode_GET_SIZE(o: *mut PyObject) -> Py_ssize_t {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected