pub trait PercentBetween {
// Required method
fn percent_between(&self, min: &Self, max: &Self) -> ZeroToOne;
}
Expand description
Calculates the ratio of one value against a minimum and maximum.
Required Methods§
sourcefn percent_between(&self, min: &Self, max: &Self) -> ZeroToOne
fn percent_between(&self, min: &Self, max: &Self) -> ZeroToOne
Return the percentage that self
is between min
and max
.
Object Safety§
This trait is not object safe.