pub trait Unit: Sized {
const NUM: i32;
const DEN: i32;
// Required method
fn value(&self) -> f64;
// Provided method
fn base_value(&self) -> f64 { ... }
}Expand description
Core Trait that represent a Unit
Required Associated Constants§
Required Methods§
Provided Methods§
Sourcefn base_value(&self) -> f64
fn base_value(&self) -> f64
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.