⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here

Trait PyClass__eq__SlotFragment

Source
pub trait PyClass__eq__SlotFragment<T>: Sized {
    // Provided method
    unsafe fn __eq__(
        self,
        py: Python<'_>,
        _slf: *mut PyObject,
        _other: *mut PyObject,
    ) -> PyResult<*mut PyObject> { ... }
}

Provided Methods§

Source

unsafe fn __eq__( self, py: Python<'_>, _slf: *mut PyObject, _other: *mut PyObject, ) -> PyResult<*mut PyObject>

§Safety: _slf and _other must be valid non-null Python objects

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> PyClass__eq__SlotFragment<T> for &PyClassImplCollector<T>

impl PyClass__eq__SlotFragment<Eq> for PyClassImplCollector<Eq>

impl PyClass__eq__SlotFragment<EqDefaultNe> for PyClassImplCollector<EqDefaultNe>

impl PyClass__eq__SlotFragment<Ordered> for PyClassImplCollector<Ordered>

impl PyClass__eq__SlotFragment<OrderedDefaultNe> for PyClassImplCollector<OrderedDefaultNe>