pub fn insert_call(text: &str, caret: usize, name: &str) -> (String, usize)Expand description
Insert a call of name into text at byte caret: NAME(, the caret
after the (. A word typed before the caret that starts the name
(pm for PMT) is replaced, and a ( already after the caret is reused.