Module paralegal_spdg::utils
source · Expand description
Utility functions and structs
Modules
Structs
- Has a
Display
implementation if the elements of the iterator inside have one. This will render them surrounded by[
brackets and separated by,
comma and space - A struct with a
Display
implementation taht renders astd::time::Duration
in human readable form, similar to thehumantime
crate, but instead of rendering with arbitrary precision it only renders two “significant sections”, e.g. “2h 5min” or “2d 20h”. The sections are days (d), hours (h), minutes (min), seconds (s), miliseconds (ms), microseconds (μs) and nanoseconds (ns).
Functions
- Display this iterator as a list
- Write all elements from
it
into the formatterfmt
usingf
, separating them withsep