Skip to main content

Equal

Trait Equal 

Source
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§

Source

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.

Implementors§

Source§

impl<T: PartialEq + ?Sized> Equal for T