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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.