Trait dimensioned::traits::Dimensionless [−][src]
pub trait Dimensionless: Dimensioned { fn value(&self) -> &Self::Value; }
This trait is implemented for all quantities with no units. The unit systems that come with
dimensioned use Unitless<V>
for that type.
Required Methods
fn value(&self) -> &Self::Value
Extract the value from a quantity with no units. As there are no units to ignore, it is dimensionally safe.
Implementors
impl<Value> Dimensionless for dimensioned::unit_systems::si::Unitless<Value>
impl<Value> Dimensionless for dimensioned::unit_systems::ucum::Unitless<Value>
impl<Value> Dimensionless for dimensioned::unit_systems::mks::Unitless<Value>
impl<Value> Dimensionless for dimensioned::unit_systems::cgs::Unitless<Value>
impl<Value> Dimensionless for dimensioned::unit_systems::fps::Unitless<Value>