Skip to main content

DynPartialEq

Trait DynPartialEq 

Source
pub trait DynPartialEq: Any {
    // Required method
    fn dyn_partial_eq(&self, other: &dyn Any) -> bool;
}
Expand description

A dynamic-dispatch version of the PartialEq trait. Implemented for every type that implements Any + PartialEq.

Required Methods§

Source

fn dyn_partial_eq(&self, other: &dyn Any) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§