Function write_truncated_start

Source
pub fn write_truncated_start(
    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 leading characters. Returns width of the truncated text, which may be shorter than max_width.

The input recorded_content should be a single-line text.