pub trait RatioExt {
    fn ratio_wrt(&self, max: &Self) -> Res<f32>;
}
Expand description

Extension trait allowing to compute ratios.

Required Methods

Returns the percentage (between 0 and 100) of the ratio between self and max.

Implementations on Foreign Types

Implementors