pub fn eq<O>(&self, other: O) -> PyResult<bool>
    where
        O: ToPyObject,
    {
        self.rich_compare(other, CompareOp::Eq)?.is_true()
    }
/// Tests whether this object is equal to another.
///
/// This is equivalent to the Python expression `self == other`.
Tests whether this object is equal to another.
This is equivalent to the Python expression `self == other`.
Tests whether this object is equal to another . This is equivalent to the Python expression ` self == other ` .
pub fn eq<O>(&self, other: O) -> PyResult<bool>
    where
        O: ToPyObject,
    {
        self.rich_compare(other, CompareOp::Eq)?.is_true()
    }
pub fn eq < O > ( & self , other : O ) -> PyResult < bool > where O : ToPyObject , { self . rich_compare ( other , CompareOp :: Eq ) ? . is_true ( ) }
Tests whether this object is equal to another.
Tests whether this object is equal to another .
&self
other
O
&self
other
O