pub trait Axis<T>: 'static + Copy + Ord + Default {
// Required methods
fn from_percent(&self, percent: f64) -> T;
fn to_percent(self, max: T) -> f64;
fn prettyprint(self, unit_fmt: &UnitFmt) -> String;
fn to_f64(self) -> f64;
fn from_f64(&self, x: f64) -> T;
fn zero() -> T;
}
Required Methods§
fn from_percent(&self, percent: f64) -> T
fn to_percent(self, max: T) -> f64
fn prettyprint(self, unit_fmt: &UnitFmt) -> String
fn to_f64(self) -> f64
fn from_f64(&self, x: f64) -> T
fn zero() -> T
Object Safety§
This trait is not object safe.