pub trait ToNormalisedValue {
// Required method
fn to_normalised_value(&self) -> Option<f32>;
}Expand description
Returns the canonical (unit-normalised) numeric value for range validation.
Unlike ToNumberValue which returns the raw token value, this returns the value in a unit suitable for range
comparison. For example, Angle returns degrees regardless of whether the token was deg, rad, grad, or
turn.
For plain numeric types (integers, numbers, lengths, percentages) the value is identical to the raw token value.