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

Method eq

src/objects/object.rs:274–276  ·  view source on GitHub ↗
(&self, o: &PyObject)

Source from the content-addressed store, hash-verified

272impl PartialEq for PyObject {
273 #[inline]
274 fn eq(&self, o: &PyObject) -> bool {
275 self.as_ptr() == o.as_ptr()
276 }
277}
278
279/// PyObject implements the `==` operator using reference equality:

Callers

nothing calls this directly

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected