pub fn auto_indent(text: &str, newline_at: usize, indent: u8) -> Option<String>Expand description
The indentation a new line takes after Enter typed at newline_at: the previous line’s
leading whitespace, one level deeper when that line ends in an opening bracket. None when
there is nothing to insert.