pub trait RatioExt { fn ratio_wrt(&self, max: &Self) -> Res<f32>; }
Extension trait allowing to compute ratios.
Returns the percentage (between 0 and 100) of the ratio between self and max.
0
100
self
max