pub const LAST_LINE: LocalKey<AtomicUsize>;Expand description
Thread-local storage for the last line index accessed.
It is initialized to 0, indicating that no lines have been accessed yet. This is a performance optimization to avoid searching from the beginning of the document every time we need to find a position. The value is updated whenever a position is found, so that subsequent calls can start from the last accessed line. If the offset is greater than value, we reset the counter to 0.