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

Function Py_True

python3-sys/src/boolobject.rs:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24#[inline(always)]
25pub unsafe fn Py_True() -> *mut PyObject {
26 &mut _Py_TrueStruct as *mut PyLongObject as *mut PyObject
27}
28
29#[inline(always)]
30pub unsafe fn Py_IsFalse(obj: *mut PyObject) -> c_int {

Callers 4

Py_IsTrueFunction · 0.70
TrueMethod · 0.50
is_trueMethod · 0.50
with_borrowed_ptrMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected