Skip to main content

StructureEq

Trait StructureEq 

Source
pub trait StructureEq {
    // Required method
    fn structure_eq(&self, other: &Self) -> bool;
}
Expand description

Trait for structural equality comparison.

Unlike PartialEq, this ignores surface hint fields that may differ between languages but don’t affect program semantics.

Required Methods§

Source

fn structure_eq(&self, other: &Self) -> bool

Compare two values for structural equality.

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§