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
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.