Trait dimensioned::traits::Dimensioned
source · [−]pub trait Dimensioned {
type Value;
type Units;
fn new(val: Self::Value) -> Self;
fn value_unsafe(&self) -> &Self::Value;
}
Expand description
Allows one to refer to quantities generically.
It is not recommened to implement this for anything outside this this crate.
Required Associated Types
Required Methods
fn value_unsafe(&self) -> &Self::Value
fn value_unsafe(&self) -> &Self::Value
Extract the value from a quantity. As this ignores the units completely, it is dimensionally unsafe.