Trait object_safe::EqObj

source ·
pub trait EqObj: PartialEqObj {
    // Required method
    fn as_eq_object(&self) -> &dyn EqObj;
}
Expand description

Object-safe version of Eq

Required Methods§

source

fn as_eq_object(&self) -> &dyn EqObj

Trait Implementations§

source§

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

impl Eq for dyn EqObjwhere dyn EqObj: 'static,

Implementors§

source§

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