Expand description

Fast, minimal, feature-rich, extended formatting syntax for Rust!

Features include:

  • Arbitrary expressions inside the formatting braces
  • Generates optimized Rust code at compiletime
  • Supports rust-analyzer auto complete, refactoring and more!
  • Supports Rust’s standard formatting specifiers
  • Single package, no proc-macro, no_std compatible, no extra dependencies
  • Control flow allows conditional and repeated formatting
  • Capture variables by value or by reference
  • Escape hatch to inject custom formatting code

See fmt! for more information.

Macros

Replaces eprint! using fmt syntax.

Replaces eprintln! using fmt syntax.

Extended formatting syntax.

Replaces format! using fmt syntax.

Replaces format_args! using fmt syntax.

Joins the arguments in a displayable object.

Replaces panic! using fmt syntax.

Replaces print! using fmt syntax.

Replaces println! using fmt syntax.

Replaces write! using fmt syntax.

Replaces writeln! using fmt syntax.

Functions

Returns a displayable object using the closure argument as its implementation.

Displays an iterable with given separator between each item.