Skip to main content

meter_text

Function meter_text 

Source
pub fn meter_text(meter: &Meter<'_>) -> String
Expand description

The accessible name for a meter: the two numbers, and the noun if it has one.

The description carries the noun alone, so the sentence is built here. That is the whole reason Meter::label is not the assembled string: a tooltip wants “3 of 7 subtasks” and a terminal at one line wants “3/7”, and a description that shipped either one would have chosen for both.

The true done is used, not the clamped one. This is the text that says an over-run happened.