Function swiftide_core::util::safe_truncate_utf8
source ยท pub fn safe_truncate_utf8(s: impl AsRef<str>, max_chars: usize) -> StringExpand description
Safely truncates a string to a maximum number of characters.
Respects utf8 character boundaries.