(&self, line: usize)
| 40 | } |
| 41 | |
| 42 | pub fn line_slice(&self, line: usize) -> Option<RopeSlice<'_>> { |
| 43 | if line >= self.rope.len_lines() { |
| 44 | return None; |
| 45 | } |
| 46 | Some(self.rope.line(line)) |
| 47 | } |
| 48 | |
| 49 | pub fn line_text(&self, line: usize) -> Option<String> { |
| 50 | let mut text = String::new(); |