Function write_padded_start

Source
pub fn write_padded_start(
    formatter: &mut dyn Formatter,
    recorded_content: &FormatRecorder,
    recorded_fill_char: &FormatRecorder,
    min_width: usize,
) -> Result<()>
Expand description

Writes text padded to min_width by adding leading fill characters.

The input recorded_content should be a single-line text. The recorded_fill_char should be bytes of 1-width character.