(&mut self, c: SourceCursor<'a>)
| 150 | |
| 151 | impl<'a, 'o, T: SourceCursorSink<'a>> SourceCursorSink<'a> for CursorOverlaySink<'a, 'o, T> { |
| 152 | fn append(&mut self, c: SourceCursor<'a>) { |
| 153 | let cursor_start = c.to_span().start(); |
| 154 | let cursor_end = c.to_span().end(); |
| 155 | |
| 156 | self.flush_segments_up_to(cursor_start, false); |
| 157 | |
| 158 | if self.cursor_is_consumed(cursor_start, cursor_end) { |
| 159 | return; |
| 160 | } |
| 161 | |
| 162 | self.sink.append(c); |
| 163 | |
| 164 | self.flush_segments_up_to(cursor_end, true); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | impl<'a, 'o, T: SourceCursorSink<'a>> CursorSink for CursorOverlaySink<'a, 'o, T> { |
no test coverage detected