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

Method True

src/python.rs:326–328  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

324 #[allow(non_snake_case)] // the Python keyword starts with uppercase
325 #[inline]
326 pub fn True(self) -> PyBool {
327 unsafe { PyObject::from_borrowed_ptr(self, ffi::Py_True()).unchecked_cast_into::<PyBool>() }
328 }
329
330 /// Gets the Python builtin value `False`.
331 #[allow(non_snake_case)] // the Python keyword starts with uppercase

Callers 1

getMethod · 0.80

Calls 1

Py_TrueFunction · 0.50

Tested by

no test coverage detected