Searched refs:last_newline_idx (Results 1 – 2 of 2) sorted by relevance
155 let last_newline_idx = match parsed_str.rfind('\n') { in write() localVariable161 match last_newline_idx { in write()162 Some(last_newline_idx) => { in write()163 for line in (self.buf[..last_newline_idx]).lines() { in write()168 self.buf.drain(..=last_newline_idx); in write()
437 if let Some(last_newline_idx) = self.buf.rfind('\n') { in write()438 for line in self.buf[..last_newline_idx].lines() { in write()442 self.buf.drain(..=last_newline_idx); in write()