Method
cursor_is_consumed
(&self, cursor_start: SourceOffset, cursor_end: SourceOffset)
Source from the content-addressed store, hash-verified
| 141 | } |
| 142 | |
| 143 | fn cursor_is_consumed(&self, cursor_start: SourceOffset, cursor_end: SourceOffset) -> bool { |
| 144 | self.processed_overlay_ranges |
| 145 | .range(..=cursor_start) |
| 146 | .next_back() |
| 147 | .is_some_and(|(&range_start, &range_end)| cursor_start >= range_start && cursor_end <= range_end) |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | impl<'a, 'o, T: SourceCursorSink<'a>> SourceCursorSink<'a> for CursorOverlaySink<'a, 'o, T> { |
Tested by
no test coverage detected