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

Method is_none

src/objects/object.rs:265–267  ·  view source on GitHub ↗
(&self, _py: Python)

Source from the content-addressed store, hash-verified

263 /// True if this is None in Python.
264 #[inline]
265 pub fn is_none(&self, _py: Python) -> bool {
266 self.as_ptr() == unsafe { ffi::Py_None() }
267 }
268}
269
270/// PyObject implements the `==` operator using reference equality:

Callers 4

matching_versionFunction · 0.45
matching_versionFunction · 0.45
extractMethod · 0.45

Calls 2

Py_NoneFunction · 0.50
as_ptrMethod · 0.45

Tested by

no test coverage detected