Skip to main content

insert

Function insert 

Source
pub fn insert(text: &str, cursor: usize, insertion: &str) -> (String, usize)
Expand description

Inserts insertion at character index cursor, returning the new text and the cursor placed after the inserted text.