Module fmt

Module fmt 

Source
Expand description

String formatting utilities.

Re-exports§

pub use std::fmt::*;

Structs§

Counted
Displays a correctly pluralized count of something, for example 3 users.
Indented
A wrapper returned from indent() that displays its inner value with custom indentation.
IndentedFormatter
A formatter that automatically indents lines.
Surrounded
A wrapper returned from surround() that displays a value surrounded by a custom prefix and suffix.

Functions§

count
Displays a correctly pluralized count of something, for example 3 users.
indent
Wraps the value so that it is displayed with the given initial and hanging indentation.
surround
Wraps a value so that it displays with the given prefix and suffix strings.