Skip to main content

Module percentage

Module percentage 

Source
Expand description

Specified percentages.

Structs§

NoCalcPercentage
A percentage value, where [0 .. 100%] maps to [0.0 .. 1.0]
Percentage
A specified percentage value, either a plain value or a calc() expression.

Traits§

ToPercentage
Turns the percentage into a plain float.

Type Aliases§

NonNegativePercentage
A wrapper of Percentage, whose value must be >= 0.