Trait EqObj

Source
pub trait EqObj: PartialEqObj {
    // Required methods
    fn as_eq_object(&self) -> &dyn EqObj;
    fn to_eq_object(self) -> Box<dyn EqObj>;
}
Expand description

Object-safe version of Eq

Required Methods§

Source

fn as_eq_object(&self) -> &dyn EqObj

Source

fn to_eq_object(self) -> Box<dyn EqObj>

Trait Implementations§

Source§

impl PartialEq for dyn EqObj
where dyn EqObj: '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.
Source§

impl Eq for dyn EqObj
where dyn EqObj: 'static,

Implementors§

Source§

impl<T> EqObj for T
where T: Eq + PartialEqObj,