pub(crate) fn write_index_symbol( f: &mut Formatter<'_>, state: Option<&IndexState>, dimmed: bool, ) -> Result
Write an index state symbol directly to the formatter, avoiding .to_string() allocations.
.to_string()