Skip to content

std::fmt

Status: experimental

Formatted printing and string interpolation.

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
Debug trait Debug Trait for debugging-oriented string conversion.
Display trait Display Trait for human-readable string conversion.
eprint macro eprint!(...) Prints to stderr without a trailing newline.
eprintln macro eprintln!(...) Prints to stderr followed by a newline.
format macro format!(...) Formats arguments into an owned String.
print macro print!(...) Prints to stdout without a trailing newline.
println macro println!(...) Prints to stdout followed by a newline.
write macro write!(...) Writes formatted output into a Writer.
writeln macro writeln!(...) Writes formatted output into a Writer followed by a newline.