Crate fmtools

Source
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§

eprint
Replaces eprint! using fmt syntax.
eprintln
Replaces eprintln! using fmt syntax.
fmt
Extended formatting syntax.
format
Replaces format! using fmt syntax.
format_args
Replaces format_args! using fmt syntax.
join
Joins the arguments in a displayable object.
panic
Replaces panic! using fmt syntax.
print
Replaces print! using fmt syntax.
println
Replaces println! using fmt syntax.
write
Replaces write! using fmt syntax.
writeln
Replaces writeln! using fmt syntax.

Functions§

fmt
Returns a displayable object using the closure argument as its implementation.
join
Displays an iterable with given separator between each item.