pub fn block_document_position(block: &Block, store: &Store) -> i64Expand description
Return the absolute character position of a block’s start in the
document, derived from the rope via BlockOffsetIndex.
O(log n): one range_of_block lookup + one byte_to_char conversion.
Falls back to block.document_position for blocks not registered in
the index — blocks under non-top-level frames (insert_frame_uc only
mirrors top-level frames). Table-cell blocks ARE registered: they are
mirrored inline into the rope in document order. The stored field is
set authoritatively by the non-flow paths and stays correct for them
across main-flow edits.