Trait FrameOrd

Source
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§

Source

fn peek<'b>(&'b self) -> Option<&'b Op>

Return the first Op in the Frame.

Source

fn primary_cmp(a: &Op, b: &Op) -> Ordering

Compare a and b using the primary comparison function.

Source

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.

Implementors§