[][src]Trait ron_crdt::heap::FrameOrd

pub trait FrameOrd<'a>: From<Frame<'a>> + Iterator<Item = Op> {
    fn peek<'b>(&'b self) -> Option<&'b Op>;
fn primary_cmp(a: &Op, b: &Op) -> Ordering;
fn secondary_cmp(a: &Op, b: &Op) -> Ordering; }

Helper trait for configuring Heaps order.

Required methods

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

Return the first Op in the Frame.

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

Compare a and b using the primary comparison function.

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

Compare a and b using the secondary comparison function.

Loading content...

Implementors

Loading content...