kvarn_utils::prelude::fmt

Struct Formatter

1.0.0 · source
pub struct Formatter<'a> { /* private fields */ }
Expand description

Configuration for formatting.

A Formatter represents various options related to formatting. Users do not construct Formatters directly; a mutable reference to one is passed to the fmt method of all formatting traits, like Debug and Display.

To interact with a Formatter, you’ll call various methods to change the various options related to formatting. For examples, please see the documentation of the methods defined on Formatter below.

Implementations§

source§

impl<'a> Formatter<'a>

1.0.0 · source

pub fn pad_integral( &mut self, is_nonnegative: bool, prefix: &str, buf: &