Skip to main content

Module formatter

Module formatter 

Source
Expand description

Lightweight formatting helpers.

Useful in no_std contexts where calling the alloc crate formatter and related functions can cause crashes

Structs§

AllocString
Minimal string type
FormatSpec
Format specifier struct

Traits§

FDisplay
Custom formatter replacement for the core::fmt::Display trait
FormatArgs
Argument formatting trait
WriteBuffer
Minimal writable buffer trait

Functions§

format_rt
String formatting function
format_str_inner
Wrapper around the format_rt function to simplify the [crate::format_str_inner!] macro definition