Module fmt
Available on crate features
dep_jiff
and alloc
only.Expand description
Configurable support for printing and parsing datetimes and durations.
Note that for most use cases, you should be using the corresponding
Display
or FromStr
trait
implementations for printing and parsing respectively. The APIs in this module
provide more configurable support for printing and parsing.
Modules§
- A bespoke but easy to read format for
Span
andSignedDuration
. - Support for printing and parsing instants using the RFC 2822 datetime format.
- Support for “printf”-style parsing and formatting.
Structs§
- An adapter for using
std::fmt::Write
implementations withfmt::Write
. - An adapter for using
std::io::Write
implementations withfmt::Write
.
Traits§
- A trait for printing datetimes or spans into Unicode-accepting buffers or streams.