pub fn to_length(&self, value: f32) -> Length {
        match self.units {
            Units::Metric => Length::new::<millimeter>(value),
            Units::Imperial => Length::new::<inch>(value),
        }
    }
/// Convert the value to a length, taking into account the current unit
/// system.
Convert the value to a length, taking into account the current unit
system.
Convert the value to a length taking into account the current unit system .
pub fn to_length(&self, value: f32) -> Length {
        match self.units {
            Units::Metric => Length::new::<millimeter>(value),
            Units::Imperial => Length::new::<inch>(value),
        }
    }
pub fn to_length ( & self , value : f32 ) -> Length { match self . units { Units :: Metric => Length :: new :: < millimeter > ( value ) , Units :: Imperial => Length :: new :: < inch > ( value ) , } }
Convert the value to a length, taking into account the current unit
system.
Convert the value to a length taking into account the current unit system .
&self
value
f32
&self
value
f32