pub trait ReferenceSystem {
type Inner;
const T: i8;
const L: i8;
const M: i8;
const I: i8;
const THETA: i8;
const N: i8;
const J: i8;
const FACTOR: f64 = _;
// Required methods
fn from_reduced(value: Self::Inner) -> Self
where Self::Inner: Mul<f64, Output = Self::Inner>;
fn to_reduced(&self) -> Self::Inner
where for<'a> &'a Self::Inner: Div<f64, Output = Self::Inner>;
fn into_reduced(self) -> Self::Inner
where Self::Inner: Div<f64, Output = Self::Inner>;
}Expand description
Conversion between reduced units and SI units.
Required Associated Constants§
const T: i8
const L: i8
const M: i8
const I: i8
const THETA: i8
const N: i8
const J: i8
Provided Associated Constants§
Required Associated Types§
Required Methods§
fn from_reduced(value: Self::Inner) -> Self
fn to_reduced(&self) -> Self::Inner
fn into_reduced(self) -> Self::Inner
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<Inner, const T: i8, const L: i8, const M: i8, const I: i8, const THETA: i8, const N: i8, const J: i8> ReferenceSystem for Quantity<Inner, SIUnit<T, L, M, I, THETA, N, J>>
Conversion to and from reduced units
impl<Inner, const T: i8, const L: i8, const M: i8, const I: i8, const THETA: i8, const N: i8, const J: i8> ReferenceSystem for Quantity<Inner, SIUnit<T, L, M, I, THETA, N, J>>
Conversion to and from reduced units