pub fn tab_indent(text: &str, caret: usize, indent: u8) -> String
The spaces a Tab inserts at caret: to the next tab stop of width indent, counted in characters from the start of the caret’s line.
caret
indent