Module prodash::unit[][src]

Modules

display

Various utilities to display values and units.

human

Structs

Bytes

A marker for formatting numbers as bytes in renderers.

Duration

A marker for formatting numbers as duration in renderers, as in 7d4h20m10s.

Human

A helper for formatting numbers in a format easily read by humans in renderers, as in 2.54 million objects

Range

A helper for formatting numbers representing ranges in renderers as in 2 of 5 steps.

Unit

A configurable and flexible unit for use in Progress::init().

Enums

Kind

Either a static label or a dynamic one implementing DisplayValue.

Traits

DisplayValue

A trait to encapsulate all capabilities needed to display a value with unit within a renderer.

Functions

dynamic

Returns a unit that is a dynamic label.

dynamic_and_mode

Returns a unit that is a dynamic label along with information on where to display a fraction and throughput.

label

Returns a unit that is a static label.

label_and_mode

Returns a unit that is a static label along with information on where to display a fraction and throughput.