Trait powerfmt::ext::FormatterExt

source ·
pub trait FormatterExt: Sealed {
    // Required method
    fn pad_with_width(&mut self, width: usize, args: Arguments<'_>) -> Result;
}
Expand description

An extension trait for core::fmt::Formatter.

Required Methods§

source

fn pad_with_width(&mut self, width: usize, args: Arguments<'_>) -> Result

Writes the given arguments to the formatter, padding them with the given width. If width is incorrect, the resulting output will not be the requested width.

Implementations on Foreign Types§

source§

impl FormatterExt for Formatter<'_>

source§

fn pad_with_width(&mut self, args_width: usize, args: Arguments<'_>) -> Result

Implementors§