pub trait Comparison {
// Required method
fn equals(&self, other: &Self, heap: &Heap) -> StrResult<bool>;
// Provided method
fn not_equals(&self, other: &Self, heap: &Heap) -> StrResult<bool> { ... }
}Required Methods§
Provided Methods§
fn not_equals(&self, other: &Self, heap: &Heap) -> StrResult<bool>
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.