Expand description
fmty
Composable core::fmt
utilities, brought
to you by Nikolai Vazquez.
If you find this crate useful, consider starring it as well as sponsoring or donating once. 💖
Install
This crate is available on crates.io and can be
used by running the following cargo
command in your project directory:
cargo add fmty
or by manually adding the following to your project’s Cargo.toml
:
[dependencies]
fmty = "0.1.1"
MSRV
This crate’s minimum supported Rust version is 1.56.0
.
Updating the Rust version is considered a breaking change that will result in an
appropriate crate version update.
License
Like the Rust project, this library may be used under either the MIT License or Apache License (Version 2.0) at your choosing.
Modules
Types defined by this crate.
Macros
Concatenates items that may be different types.
Like
format_args!
or fmt_with()
depending on usage.Like
core::format_args!
, but with full ownership.Like
core::format_args!
, but with full ownership.Traits
Iterator
formatting methods.Functions
Concatenates mapped
Iterator
results.Concatenates mapped
Iterator
results, at most once.Concatenates
Iterator
items, at most once.Concatenates tuple items that may be different types.
Conditionally writes a value.
Conditionally writes an
Option
.Conditionally writes a value, or its fallback if
false
.Conditionally writes a
Result
variant.Conditionally writes a closure result.
Conditionally writes a closure
Option
result.Concatenates mapped
Iterator
results with ,
between each, at most
once.Formats via a closure.
Places a value between
left
and right
.Concatenates mapped
Iterator
results with a separator between each, at
most once.Concatenates tuple items with a separator between each.
Writes nothing.
Places a value between
`
.Places a value between
﹁
and ﹂
.Places a value between
『
and 』
.Places a value between
﹃
and ﹄
.Places a value between
“
and ”
.Places a value between
‘
and ’
.Places a value between
„
and “
.Places a value between
‚
and ‘
.Places a value between
"
.Places a value between
«
and »
.Places a value between
‹
and ›
.Places a value between
'
.Repeats a value
n
times.Repeats
n
results of a closure.Converts to ASCII lowercase.
Converts to ASCII uppercase.
Shortens to
len
char
s.