pub trait PartialEqObj: AsAny {
    // Required methods
    fn eq_object(&self, other: &dyn PartialEqObj) -> bool;
    fn as_partial_eq_object(&self) -> &dyn PartialEqObj;
}
Expand description

Object-safe version of PartialEq

Required Methods§

source

fn eq_object(&self, other: &dyn PartialEqObj) -> bool

source

fn as_partial_eq_object(&self) -> &dyn PartialEqObj

Trait Implementations§

source§

impl PartialEq<dyn PartialEqObj> for dyn PartialEqObjwhere dyn PartialEqObj: 'static,

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§

source§

impl<T> PartialEqObj for Twhere T: PartialEq + AsAny,