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 a std::time::Duration in human readable form, similar to the humantime 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 formatter fmt using f, separating them with sep