pub trait DeepEq<Rhs = Self> {
// Required method
fn deep_eq(&self, other: &Rhs) -> bool;
// Provided method
fn deep_ne(&self, other: &Rhs) -> bool { ... }
}Expand description
Check if all fields are the same rather than just a subset (“deep equals”)