fn truncate_for_error(s: &str) -> StringExpand description
Trims s and, if it exceeds MAX_ECHOED_VALUE_LEN characters, truncates to that many
characters followed by an ellipsis. Operates on char boundaries, so it is UTF-8 safe.
fn truncate_for_error(s: &str) -> StringTrims s and, if it exceeds MAX_ECHOED_VALUE_LEN characters, truncates to that many
characters followed by an ellipsis. Operates on char boundaries, so it is UTF-8 safe.