pub trait SemanticEq {
// Required method
fn semantic_eq(&self, other: &Self) -> bool;
}Expand description
Trait for semantic equality comparison that ignores source positions and whitespace.
This trait provides semantic comparison for CSS AST nodes, comparing their structural content and meaning rather than their exact representation in source code. Two nodes are semantically equal if they represent the same CSS construct, regardless of source position or trivia.
Required Methods§
Sourcefn semantic_eq(&self, other: &Self) -> bool
fn semantic_eq(&self, other: &Self) -> bool
Returns true if self and other are semantically equal.
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.