pub fn dimension(&self) -> Dimension {
        match *self {
            Unit::Cm
            | Unit::Mm
            | Unit::Q
            | Unit::In
            | Unit::Pc
            | Unit::Pt
            | Unit::Px => Dimension::LengthAbs,

            Unit::Vw => Dimension::LengthVw,
            Unit::Vh => Dimension::LengthVh,
            Unit::Vmin | Unit::Vmax => Dimension::LengthVx,
            Unit::Ch | Unit::Em | Unit::Ex => Dimension::LenghtEm,
            Unit::Rem => Dimension::LengthRem,

            Unit::Deg | Unit::Grad | Unit::Rad | Unit::Turn => {
                Dimension::Angle
            }

            Unit::S | Unit::Ms => Dimension::Time,

            Unit::Hz | Unit::Khz => Dimension::Frequency,

            Unit::Dpi | Unit::Dpcm | Unit::Dppx => Dimension::Resolution,

            Unit::Percent | Unit::Fr | Unit::None => Dimension::None,

            Unit::Unknown(ref name) => Dimension::Unknown(name.clone()),
        }
    }
/// Get the dimension of this unit.
Get the dimension of this unit.
Get the dimension of this unit .
pub fn dimension(&self) -> Dimension {
        match *self {
            Unit::Cm
            | Unit::Mm
            | Unit::Q
            | Unit::In
            | Unit::Pc
            | Unit::Pt
            | Unit::Px => Dimension::LengthAbs,
            Unit::Vw => Dimension::LengthVw,
            Unit::Vh => Dimension::LengthVh,
            Unit::Vmin | Unit::Vmax => Dimension::LengthVx,
            Unit::Ch | Unit::Em | Unit::Ex => Dimension::LenghtEm,
            Unit::Rem => Dimension::LengthRem,
            Unit::Deg | Unit::Grad | Unit::Rad | Unit::Turn => {
                Dimension::Angle
            }
            Unit::S | Unit::Ms => Dimension::Time,
            Unit::Hz | Unit::Khz => Dimension::Frequency,
            Unit::Dpi | Unit::Dpcm | Unit::Dppx => Dimension::Resolution,
            Unit::Percent | Unit::Fr | Unit::None => Dimension::None,
            Unit::Unknown(ref name) => Dimension::Unknown(name.clone()),
        }
    }
pub fn dimension ( & self ) -> Dimension { match * self { Unit :: Cm | Unit :: Mm | Unit :: Q | Unit :: In | Unit :: Pc | Unit :: Pt | Unit :: Px => Dimension :: LengthAbs , Unit :: Vw => Dimension :: LengthVw , Unit :: Vh => Dimension :: LengthVh , Unit :: Vmin | Unit :: Vmax => Dimension :: LengthVx , Unit :: Ch | Unit :: Em | Unit :: Ex => Dimension :: LenghtEm , Unit :: Rem => Dimension :: LengthRem , Unit :: Deg | Unit :: Grad | Unit :: Rad | Unit :: Turn => { Dimension :: Angle } Unit :: S | Unit :: Ms => Dimension :: Time , Unit :: Hz | Unit :: Khz => Dimension :: Frequency , Unit :: Dpi | Unit :: Dpcm | Unit :: Dppx => Dimension :: Resolution , Unit :: Percent | Unit :: Fr | Unit :: None => Dimension :: None , Unit :: Unknown ( ref name ) => Dimension :: Unknown ( name . clone ( ) ) , } }
Get the dimension of this unit.
Get the dimension of this unit .
&self