#[non_exhaustive]#[repr(u16)]pub enum Unit {
Show 126 variants
None = 9_984,
Metres = 9_985,
Kilograms = 9_986,
Seconds = 9_987,
Amperes = 9_988,
Kelvins = 9_989,
Moles = 9_990,
Candelas = 9_991,
SquareMetres = 10_000,
CubicMetres = 10_001,
MetresPerSecond = 10_002,
MetresPerSecondSquared = 10_003,
ReciprocalMetres = 10_004,
KilogramsPerCubicMetre = 10_005,
KilogramsPerSquareMetre = 10_006,
CubicMetresPerKilogram = 10_007,
AmperesPerSquareMetre = 10_008,
AmperesPerMetre = 10_009,
MolesPerCubicMetre = 10_010,
ConcentrationKilogramsPerCubicMetre = 10_011,
CandelasPerSquareMetre = 10_012,
RefractiveIndex = 10_013,
RelativePermeability = 10_014,
Radians = 10_016,
Steradians = 10_017,
Hertz = 10_018,
Newtons = 10_019,
Pascals = 10_020,
Joules = 10_021,
Watts = 10_022,
Coulombs = 10_023,
Volts = 10_024,
Farads = 10_025,
Ohms = 10_026,
Siemens = 10_027,
Webers = 10_028,
Tesla = 10_029,
Henries = 10_030,
Celsius = 10_031,
Lumens = 10_032,
Lux = 10_033,
Becquerels = 10_034,
Grays = 10_035,
Sieverts = 10_036,
Katals = 10_037,
PascalSeconds = 10_048,
NewtonMetres = 10_049,
NewtonsPerMetre = 10_050,
RadiansPerSecond = 10_051,
RadiansPerSecondSquared = 10_052,
FluxWattsPerSquareMetre = 10_053,
JoulesPerKelvin = 10_054,
JoulesPerKilogramKelvin = 10_055,
JoulesPerKilogram = 10_056,
WattsPerMetreKelvin = 10_057,
JoulesPerCubicMetre = 10_058,
VoltsPerMetre = 10_059,
CoulombsPerCubicMetre = 10_060,
CoulombsPerSquareMetre = 10_061,
FluxCoulombsPerSquareMetre = 10_062,
FaradsPerMetre = 10_063,
HenriesPerMetre = 10_064,
JoulesPerMole = 10_065,
JoulesPerMoleKelvin = 10_066,
CoulombsPerKilogram = 10_067,
GraysPerSecond = 10_068,
WattsPerSteradian = 10_069,
WattsPerSquareMetreSteradian = 10_070,
KatalsPerCubicMetre = 10_071,
Minutes = 10_080,
Hours = 10_081,
Days = 10_082,
Degrees = 10_083,
DegreeMinutes = 10_084,
DegreeSeconds = 10_085,
Hectares = 10_086,
Litres = 10_087,
Tonnes = 10_088,
Bars = 10_112,
MillimetresOfMercury = 10_113,
Angstroms = 10_114,
NauticalMiles = 10_115,
Barns = 10_116,
Knots = 10_117,
Nepers = 10_118,
Bels = 10_119,
Yards = 10_144,
Parsecs = 10_145,
Inches = 10_146,
Feet = 10_147,
Miles = 10_148,
PoundsPerSquareInch = 10_149,
KilometresPerHour = 10_150,
MilesPerHour = 10_151,
RevolutionsPerMinute = 10_152,
GramCalories = 10_153,
KilogramCalories = 10_154,
KilowattHours = 10_155,
Fahrenheit = 10_156,
Percent = 10_157,
PerMille = 10_158,
BeatsPerMinute = 10_159,
AmpereHours = 10_160,
MilligramsPerDecilitre = 10_161,
MillimolesPerLitre = 10_162,
Years = 10_163,
Months = 10_164,
CountsPerCubicMetre = 10_165,
WattsPerSquareMetre = 10_166,
MillilitersPerKilogramPerMinute = 10_167,
Pounds = 10_168,
MetabolicEquivalent = 10_169,
StepsPerMinute = 10_170,
StrokesPerMinute = 10_172,
KilometresPerMinute = 10_173,
LumensPerWatt = 10_174,
LumenHours = 10_175,
LuxHours = 10_176,
GramsPerSecond = 10_177,
LitresPerSecond = 10_178,
Decibels = 10_179,
PartsPerMillion = 10_180,
PartsPerBillion = 10_181,
MilligramsPerDecilitrePerMinute = 10_182,
KilovoltAmpereHours = 10_183,
VoltAmperes = 10_184,
}Expand description
Characteristic presentation format units ([Assigned Numbers] Section 3.5.2).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 9_984
Metres = 9_985
Kilograms = 9_986
Seconds = 9_987
Amperes = 9_988
Kelvins = 9_989
Moles = 9_990
Candelas = 9_991
SquareMetres = 10_000
CubicMetres = 10_001
MetresPerSecond = 10_002
MetresPerSecondSquared = 10_003
ReciprocalMetres = 10_004
KilogramsPerCubicMetre = 10_005
KilogramsPerSquareMetre = 10_006
CubicMetresPerKilogram = 10_007
AmperesPerSquareMetre = 10_008
AmperesPerMetre = 10_009
MolesPerCubicMetre = 10_010
ConcentrationKilogramsPerCubicMetre = 10_011
CandelasPerSquareMetre = 10_012
RefractiveIndex = 10_013
RelativePermeability = 10_014
Radians = 10_016
Steradians = 10_017
Hertz = 10_018
Newtons = 10_019
Pascals = 10_020
Joules = 10_021
Watts = 10_022
Coulombs = 10_023
Volts = 10_024
Farads = 10_025
Ohms = 10_026
Siemens = 10_027
Webers = 10_028
Tesla = 10_029
Henries = 10_030
Celsius = 10_031
Lumens = 10_032
Lux = 10_033
Becquerels = 10_034
Grays = 10_035
Sieverts = 10_036
Katals = 10_037
PascalSeconds = 10_048
NewtonMetres = 10_049
NewtonsPerMetre = 10_050
RadiansPerSecond = 10_051
RadiansPerSecondSquared = 10_052
FluxWattsPerSquareMetre = 10_053
JoulesPerKelvin = 10_054
JoulesPerKilogramKelvin = 10_055
JoulesPerKilogram = 10_056
WattsPerMetreKelvin = 10_057
JoulesPerCubicMetre = 10_058
VoltsPerMetre = 10_059
CoulombsPerCubicMetre = 10_060
CoulombsPerSquareMetre = 10_061
FluxCoulombsPerSquareMetre = 10_062
FaradsPerMetre = 10_063
HenriesPerMetre = 10_064
JoulesPerMole = 10_065
JoulesPerMoleKelvin = 10_066
CoulombsPerKilogram = 10_067
GraysPerSecond = 10_068
WattsPerSteradian = 10_069
WattsPerSquareMetreSteradian = 10_070
KatalsPerCubicMetre = 10_071
Minutes = 10_080
Hours = 10_081
Days = 10_082
Degrees = 10_083
DegreeMinutes = 10_084
DegreeSeconds = 10_085
Hectares = 10_086
Litres = 10_087
Tonnes = 10_088
Bars = 10_112
MillimetresOfMercury = 10_113
Angstroms = 10_114
NauticalMiles = 10_115
Barns = 10_116
Knots = 10_117
Nepers = 10_118
Bels = 10_119
Yards = 10_144
Parsecs = 10_145
Inches = 10_146
Feet = 10_147
Miles = 10_148
PoundsPerSquareInch = 10_149
KilometresPerHour = 10_150
MilesPerHour = 10_151
RevolutionsPerMinute = 10_152
GramCalories = 10_153
KilogramCalories = 10_154
KilowattHours = 10_155
Fahrenheit = 10_156
Percent = 10_157
PerMille = 10_158
BeatsPerMinute = 10_159
AmpereHours = 10_160
MilligramsPerDecilitre = 10_161
MillimolesPerLitre = 10_162
Years = 10_163
Months = 10_164
CountsPerCubicMetre = 10_165
WattsPerSquareMetre = 10_166
MillilitersPerKilogramPerMinute = 10_167
Pounds = 10_168
MetabolicEquivalent = 10_169
StepsPerMinute = 10_170
StrokesPerMinute = 10_172
KilometresPerMinute = 10_173
LumensPerWatt = 10_174
LumenHours = 10_175
LuxHours = 10_176
GramsPerSecond = 10_177
LitresPerSecond = 10_178
Decibels = 10_179
PartsPerMillion = 10_180
PartsPerBillion = 10_181
MilligramsPerDecilitrePerMinute = 10_182
KilovoltAmpereHours = 10_183
VoltAmperes = 10_184
Implementations§
Source§impl Unit
impl Unit
pub const NONE: Uuid16
pub const METRES: Uuid16
pub const KILOGRAMS: Uuid16
pub const SECONDS: Uuid16
pub const AMPERES: Uuid16
pub const KELVINS: Uuid16
pub const MOLES: Uuid16
pub const CANDELAS: Uuid16
pub const SQUARE_METRES: Uuid16
pub const CUBIC_METRES: Uuid16
pub const METRES_PER_SECOND: Uuid16
pub const METRES_PER_SECOND_SQUARED: Uuid16
pub const RECIPROCAL_METRES: Uuid16
pub const KILOGRAMS_PER_CUBIC_METRE: Uuid16
pub const KILOGRAMS_PER_SQUARE_METRE: Uuid16
pub const CUBIC_METRES_PER_KILOGRAM: Uuid16
pub const AMPERES_PER_SQUARE_METRE: Uuid16
pub const AMPERES_PER_METRE: Uuid16
pub const MOLES_PER_CUBIC_METRE: Uuid16
pub const CONCENTRATION_KILOGRAMS_PER_CUBIC_METRE: Uuid16
pub const CANDELAS_PER_SQUARE_METRE: Uuid16
pub const REFRACTIVE_INDEX: Uuid16
pub const RELATIVE_PERMEABILITY: Uuid16
pub const RADIANS: Uuid16
pub const STERADIANS: Uuid16
pub const HERTZ: Uuid16
pub const NEWTONS: Uuid16
pub const PASCALS: Uuid16
pub const JOULES: Uuid16
pub const WATTS: Uuid16
pub const COULOMBS: Uuid16
pub const VOLTS: Uuid16
pub const FARADS: Uuid16
pub const OHMS: Uuid16
pub const SIEMENS: Uuid16
pub const WEBERS: Uuid16
pub const TESLA: Uuid16
pub const HENRIES: Uuid16
pub const CELSIUS: Uuid16
pub const LUMENS: Uuid16
pub const LUX: Uuid16
pub const BECQUERELS: Uuid16
pub const GRAYS: Uuid16
pub const SIEVERTS: Uuid16
pub const KATALS: Uuid16
pub const PASCAL_SECONDS: Uuid16
pub const NEWTON_METRES: Uuid16
pub const NEWTONS_PER_METRE: Uuid16
pub const RADIANS_PER_SECOND: Uuid16
pub const RADIANS_PER_SECOND_SQUARED: Uuid16
pub const FLUX_WATTS_PER_SQUARE_METRE: Uuid16
pub const JOULES_PER_KELVIN: Uuid16
pub const JOULES_PER_KILOGRAM_KELVIN: Uuid16
pub const JOULES_PER_KILOGRAM: Uuid16
pub const WATTS_PER_METRE_KELVIN: Uuid16
pub const JOULES_PER_CUBIC_METRE: Uuid16
pub const VOLTS_PER_METRE: Uuid16
pub const COULOMBS_PER_CUBIC_METRE: Uuid16
pub const COULOMBS_PER_SQUARE_METRE: Uuid16
pub const FLUX_COULOMBS_PER_SQUARE_METRE: Uuid16
pub const FARADS_PER_METRE: Uuid16
pub const HENRIES_PER_METRE: Uuid16
pub const JOULES_PER_MOLE: Uuid16
pub const JOULES_PER_MOLE_KELVIN: Uuid16
pub const COULOMBS_PER_KILOGRAM: Uuid16
pub const GRAYS_PER_SECOND: Uuid16
pub const WATTS_PER_STERADIAN: Uuid16
pub const WATTS_PER_SQUARE_METRE_STERADIAN: Uuid16
pub const KATALS_PER_CUBIC_METRE: Uuid16
pub const MINUTES: Uuid16
pub const HOURS: Uuid16
pub const DAYS: Uuid16
pub const DEGREES: Uuid16
pub const DEGREE_MINUTES: Uuid16
pub const DEGREE_SECONDS: Uuid16
pub const HECTARES: Uuid16
pub const LITRES: Uuid16
pub const TONNES: Uuid16
pub const BARS: Uuid16
pub const MILLIMETRES_OF_MERCURY: Uuid16
pub const ANGSTROMS: Uuid16
pub const NAUTICAL_MILES: Uuid16
pub const BARNS: Uuid16
pub const KNOTS: Uuid16
pub const NEPERS: Uuid16
pub const BELS: Uuid16
pub const YARDS: Uuid16
pub const PARSECS: Uuid16
pub const INCHES: Uuid16
pub const FEET: Uuid16
pub const MILES: Uuid16
pub const POUNDS_PER_SQUARE_INCH: Uuid16
pub const KILOMETRES_PER_HOUR: Uuid16
pub const MILES_PER_HOUR: Uuid16
pub const REVOLUTIONS_PER_MINUTE: Uuid16
pub const GRAM_CALORIES: Uuid16
pub const KILOGRAM_CALORIES: Uuid16
pub const KILOWATT_HOURS: Uuid16
pub const FAHRENHEIT: Uuid16
pub const PERCENT: Uuid16
pub const PER_MILLE: Uuid16
pub const BEATS_PER_MINUTE: Uuid16
pub const AMPERE_HOURS: Uuid16
pub const MILLIGRAMS_PER_DECILITRE: Uuid16
pub const MILLIMOLES_PER_LITRE: Uuid16
pub const YEARS: Uuid16
pub const MONTHS: Uuid16
pub const COUNTS_PER_CUBIC_METRE: Uuid16
pub const WATTS_PER_SQUARE_METRE: Uuid16
pub const MILLILITERS_PER_KILOGRAM_PER_MINUTE: Uuid16
pub const POUNDS: Uuid16
pub const METABOLIC_EQUIVALENT: Uuid16
pub const STEPS_PER_MINUTE: Uuid16
pub const STROKES_PER_MINUTE: Uuid16
pub const KILOMETRES_PER_MINUTE: Uuid16
pub const LUMENS_PER_WATT: Uuid16
pub const LUMEN_HOURS: Uuid16
pub const LUX_HOURS: Uuid16
pub const GRAMS_PER_SECOND: Uuid16
pub const LITRES_PER_SECOND: Uuid16
pub const DECIBELS: Uuid16
pub const PARTS_PER_MILLION: Uuid16
pub const PARTS_PER_BILLION: Uuid16
pub const MILLIGRAMS_PER_DECILITRE_PER_MINUTE: Uuid16
pub const KILOVOLT_AMPERE_HOURS: Uuid16
pub const VOLT_AMPERES: Uuid16
Trait Implementations§
Source§impl Ord for Unit
impl Ord for Unit
Source§impl PartialOrd for Unit
impl PartialOrd for Unit
Source§impl TryFromPrimitive for Unit
impl TryFromPrimitive for Unit
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more