risingwave_frontend::utils

Trait DynEq

source
pub trait DynEq: Any {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn dyn_eq(&self, other: &dyn DynEq) -> bool;
}
Expand description

An object safe version of Eq. This trait is automatically implemented for any 'static type that implements Eq.

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

fn dyn_eq(&self, other: &dyn DynEq) -> bool

Trait Implementations§

source§

impl PartialEq for dyn DynEq

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 DynEq

Implementors§

source§

impl<T: Any + Eq> DynEq for T