Skip to main content

cmp

Function cmp 

Source
pub fn cmp(a: &[u8], b: &[u8]) -> Ordering
Expand description

Compare two keys as base-256 fractions (missing/trailing digits are 0).

The comparison itself is kept below this crate (tilo_automerge::rich_text::key_cmp), where the reader of a whole document as JSON orders a rich text’s paragraphs by it too: that reader cannot link this crate, and there is one rule.