pub trait ReferenceSystem {
type Inner;
type T: Integer;
type L: Integer;
type M: Integer;
type I: Integer;
type THETA: Integer;
type N: Integer;
type J: Integer;
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.
Provided Associated Constants§
Required Associated Types§
type Inner
type T: Integer
type L: Integer
type M: Integer
type I: Integer
type THETA: Integer
type N: Integer
type J: Integer
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", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<Inner, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer> ReferenceSystem for Quantity<Inner, SIUnit<T, L, M, I, THETA, N, J>>
Conversion to and from reduced units
impl<Inner, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer> ReferenceSystem for Quantity<Inner, SIUnit<T, L, M, I, THETA, N, J>>
Conversion to and from reduced units