PartialEqObj

Trait PartialEqObj 

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

Object-safe version of PartialEq

Required Methods§

Trait Implementations§

Source§

impl PartialEq for dyn PartialEqObj
where dyn PartialEqObj: 'static,

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

Implementors§

Source§

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