pub trait Comparable {
// Required method
fn comp(&self, other: &Self) -> Ordering;
}Expand description
A custom version of Ord that only exists to we can implement it for the Values in our heap
Required Methods§
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.