Enum cpc::units::UnitType [−][src]
pub enum UnitType {}Show variants
NoType, Time, Length, Area, Volume, Mass, DigitalStorage, Energy, Power, ElectricCurrent, Resistance, Voltage, Pressure, Frequency, Speed, Temperature,
Expand description
An enum of all possible unit types, like Length
, DigitalStorage
etc.
There is also a NoType
unit type for normal numbers.
Variants
A normal number, for example 5
A unit of time, for example Hour
A unit of length, for example Mile
A unit of area, for example SquareKilometer
A unit of volume, for example Liter
or Tablespoon
A unit of mass, for example Gram
A unit of digital storage, for example Kilobyte
A unit of energy, for example Joule
or KilowattHour
A unit of power, for example Watt
A unit of electrical current, for example Ampere
A unit of electric resistance, for example Ohm
A unit of voltage, for example Volt
A unit of pressure, for example Bar
A unit of frequency, for example Hertz
A unit of x, for example KilometersPerHour
A unit of temperature, for example Kelvin
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnitType
impl UnwindSafe for UnitType
Blanket Implementations
Mutably borrows from an owned value. Read more