pub trait Equal {
// Required method
fn equal(&self, other: &Self) -> bool;
}Expand description
equal() of equalfuncs.c: two trees are equal when all their fields are equal, except the locations. The derived PartialEq compares the locations too, so it is not equal().
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: Equal> Equal for Option<T>
Two NULL pointers are equal, and a NULL pointer is not equal to a node.
impl<T: Equal> Equal for Option<T>
Two NULL pointers are equal, and a NULL pointer is not equal to a node.