pub fn write_truncated_end(
formatter: &mut dyn Formatter,
recorded_content: &FormatRecorder,
recorded_ellipsis: &FormatRecorder,
max_width: usize,
) -> Result<usize>Expand description
Writes text truncated to max_width by removing trailing characters.
Returns width of the truncated text, which may be shorter than max_width.
The input recorded_content should be a single-line text.