use crate::common::sealed::Sealed;
pub trait PercentLike: Sealed + Copy {
fn into_percent(self) -> f64;
}
impl PercentLike for f32 {
#[inline]
fn into_percent(self) -> f64 {
self as f64
}
}
impl PercentLike for f64 {
#[inline]
fn into_percent(self) -> f64 {
self
}
}