MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / cursor_cmp

Function cursor_cmp

atomic-cli/src/commands/agent/provenance_rpc.rs:483–485  ·  view source on GitHub ↗

The proto PageCursor carries no ordering; compare (seq, offset).

(left: &pb::PageCursor, right: &pb::PageCursor)

Source from the content-addressed store, hash-verified

481
482/// The proto PageCursor carries no ordering; compare (seq, offset).
483fn cursor_cmp(left: &pb::PageCursor, right: &pb::PageCursor) -> std::cmp::Ordering {
484 (left.seq, left.offset).cmp(&(right.seq, right.offset))
485}
486
487// ---------------------------------------------------------------------------
488// append chunking (ported; see the module doc for the budget deviation)

Callers 1

append_frozen_pageFunction · 0.85

Calls 1

cmpMethod · 0.45

Tested by

no test coverage detected