MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / line_slice

Method line_slice

src/editor/document.rs:42–47  ·  view source on GitHub ↗
(&self, line: usize)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

lineMethod · 0.80

Tested by

no test coverage detected