MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / None

Method None

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

Source from the content-addressed store, hash-verified

317 #[allow(non_snake_case)] // the Python keyword starts with uppercase
318 #[inline]
319 pub fn None(self) -> PyObject {
320 unsafe { PyObject::from_borrowed_ptr(self, ffi::Py_None()) }
321 }
322
323 /// Gets the Python builtin value `True`.
324 #[allow(non_snake_case)] // the Python keyword starts with uppercase

Callers 10

get_typeMethod · 0.80
instanceMethod · 0.80
to_py_objectMethod · 0.80
into_py_objectMethod · 0.80
powerMethod · 0.80
to_py_objectMethod · 0.80
extractMethod · 0.80
serialize_noneMethod · 0.80
variant_seedMethod · 0.80
gc_integrationFunction · 0.80

Calls 1

Py_NoneFunction · 0.50

Tested by 1

gc_integrationFunction · 0.64