Function find_span
pub fn find_span(source: &str, byte_offset: usize) -> Option<(usize, usize)>Expand description
Byte-range of the ※[#…] span containing byte_offset.
Scans only a bounded window around the cursor (cost independent of
doc size). For editor cursor-hover; full-document callers use
gaiji_resolutions.