(&self)
| 213 | } |
| 214 | |
| 215 | pub fn to_string(&self) -> String { |
| 216 | let mut text = String::with_capacity(self.rope.len_bytes()); |
| 217 | for chunk in self.rope.chunks() { |
| 218 | text.push_str(chunk); |
| 219 | } |
| 220 | text |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | fn trim_line_ending(text: &mut String) { |
no outgoing calls
no test coverage detected