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

Method insert_char

src/editor/document.rs:152–154  ·  view source on GitHub ↗
(&mut self, char_idx: usize, ch: char)

Source from the content-addressed store, hash-verified

150 }
151
152 pub fn insert_char(&mut self, char_idx: usize, ch: char) {
153 self.rope.insert_char(char_idx.min(self.len_chars()), ch);
154 }
155
156 pub fn insert_str(&mut self, char_idx: usize, text: &str) {
157 if !text.is_empty() {

Callers 1

insert_lineMethod · 0.45

Calls 1

len_charsMethod · 0.80

Tested by

no test coverage detected