Skip to main content

ReflectEq

Trait ReflectEq 

Source
pub trait ReflectEq {
    // Required method
    fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool;
}
Expand description

Special version of eq.

With mode ReflectEqMode::default(), should be equivalent to #[derive(PartialEq)].

Required Methods§

Source

fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool

Perform the equality comparison.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§