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

Function PyUnicode_CheckExact

python3-sys/src/unicodeobject.rs:28–30  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

26
27#[inline(always)]
28pub unsafe fn PyUnicode_CheckExact(op: *mut PyObject) -> c_int {
29 (Py_TYPE(op) == &mut PyUnicode_Type) as c_int
30}
31
32pub const Py_UNICODE_REPLACEMENT_CHARACTER: Py_UCS4 = 0xFFFD;
33

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected