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

Method line_text

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

Source from the content-addressed store, hash-verified

47 }
48
49 pub fn line_text(&self, line: usize) -> Option<String> {
50 let mut text = String::new();
51 self.line_text_into(line, &mut text).then_some(text)
52 }
53
54 pub fn line_text_into(&self, line: usize, out: &mut String) -> bool {
55 let Some(slice) = self.line(line) else {

Callers 2

line_len_charsMethod · 0.45
position_to_charMethod · 0.45

Calls 1

line_text_intoMethod · 0.45

Tested by

no test coverage detected