write_padded_centered

Function write_padded_centered 

Source
pub fn write_padded_centered(
    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 and trailing fill characters.

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