pub trait Equal: PartialEq {
// Provided method
fn effect_equals(&self, other: &Self) -> bool { ... }
}Expand description
Structural equality — Effect.ts Equal.equals.
Blanket-implemented for every PartialEq type; override only when you need
custom structural semantics.
Provided Methods§
Sourcefn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether self and other are structurally equal (defaults to PartialEq::eq).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.