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

Function PyString_CheckExact

python27-sys/src/stringobject.rs:33–36  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

31
32#[inline(always)]
33pub unsafe fn PyString_CheckExact(op: *mut PyObject) -> c_int {
34 let u: *mut PyTypeObject = &mut PyString_Type;
35 (Py_TYPE(op) == u) as c_int
36}
37
38#[inline(always)]
39pub unsafe fn PyString_GET_SIZE(op: *mut PyObject) -> Py_ssize_t {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected