pub fn scale_to(&self, other: &Self) -> Option<Number> {
        if self == other {
            Some(one())
        } else if self.dimension() == other.dimension() {
            Some(self.scale_factor() / other.scale_factor())
        } else {
            None
        }
    }
/// Get a scaling factor to convert this unit to another unit.
///
/// Returns None if the units are of different dimension.
Get a scaling factor to convert this unit to another unit.
Returns None if the units are of different dimension.
Get a scaling factor to convert this unit to another unit . Returns None if the units are of different dimension .
pub fn scale_to(&self, other: &Self) -> Option<Number> {
        if self == other {
            Some(one())
        } else if self.dimension() == other.dimension() {
            Some(self.scale_factor() / other.scale_factor())
        } else {
            None
        }
    }
pub fn scale_to ( & self , other : & Self ) -> Option < Number > { if self == other { Some ( one ( ) ) } else if self . dimension ( ) == other . dimension ( ) { Some ( self . scale_factor ( ) / other . scale_factor ( ) ) } else { None } }
Get a scaling factor to convert this unit to another unit.
Get a scaling factor to convert this unit to another unit .
&self
other
&Self