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

Method line

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

Source from the content-addressed store, hash-verified

36 }
37
38 pub fn line(&self, line: usize) -> Option<RopeSlice<'_>> {
39 (line < self.line_count()).then(|| self.rope.line(line))
40 }
41
42 pub fn line_slice(&self, line: usize) -> Option<RopeSlice<'_>> {
43 if line >= self.rope.len_lines() {

Callers 2

line_sliceMethod · 0.80
line_text_intoMethod · 0.80

Calls 1

line_countMethod · 0.45

Tested by

no test coverage detected