pub trait FrameOrd<'a>: From<Frame<'a>> + Iterator<Item = Op> {
// Required methods
fn peek<'b>(&'b self) -> Option<&'b Op>;
fn primary_cmp(a: &Op, b: &Op) -> Ordering;
fn secondary_cmp(a: &Op, b: &Op) -> Ordering;
}Expand description
Helper trait for configuring Heaps order.
Required Methods§
Sourcefn primary_cmp(a: &Op, b: &Op) -> Ordering
fn primary_cmp(a: &Op, b: &Op) -> Ordering
Compare a and b using the primary comparison function.
Sourcefn secondary_cmp(a: &Op, b: &Op) -> Ordering
fn secondary_cmp(a: &Op, b: &Op) -> Ordering
Compare a and b using the secondary comparison function.
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.