pub enum Units {
Show 52 variants yottapascal(yottapascal), zettapascal(zettapascal), exapascal(exapascal), petapascal(petapascal), terapascal(terapascal), gigapascal(gigapascal), megapascal(megapascal), kilopascal(kilopascal), hectopascal(hectopascal), decapascal(decapascal), pascal(pascal), decipascal(decipascal), centipascal(centipascal), millipascal(millipascal), micropascal(micropascal), nanopascal(nanopascal), picopascal(picopascal), femtopascal(femtopascal), attopascal(attopascal), zeptopascal(zeptopascal), yoctopascal(yoctopascal), atmosphere(atmosphere), atmosphere_technical(atmosphere_technical), bar(bar), centimeter_of_mercury_0(centimeter_of_mercury_0), centimeter_of_mercury(centimeter_of_mercury), centimeter_of_water_4(centimeter_of_water_4), centimeter_of_water(centimeter_of_water), dyne_per_square_centimeter(dyne_per_square_centimeter), foot_of_mercury(foot_of_mercury), foot_of_water_39_2(foot_of_water_39_2), foot_of_water(foot_of_water), gram_force_per_square_centimeter(gram_force_per_square_centimeter), inch_of_mercury_32(inch_of_mercury_32), inch_of_mercury_60(inch_of_mercury_60), inch_of_mercury(inch_of_mercury), inch_of_water_39_2(inch_of_water_39_2), inch_of_water_60(inch_of_water_60), inch_of_water(inch_of_water), kilogram_force_per_square_centimeter(kilogram_force_per_square_centimeter), kilogram_force_per_square_meter(kilogram_force_per_square_meter), kilogram_force_per_square_millimeter(kilogram_force_per_square_millimeter), kip_per_square_inch(kip_per_square_inch), millibar(millibar), millimeter_of_mercury(millimeter_of_mercury), millimeter_of_water(millimeter_of_water), millitorr(millitorr), poundal_per_square_foot(poundal_per_square_foot), pound_force_per_square_foot(pound_force_per_square_foot), pound_force_per_square_inch(pound_force_per_square_inch), psi(psi), torr(torr), // some variants omitted
}
Expand description

Unit enum.

Variants

yottapascal(yottapascal)

Tuple Fields

yottapascals

zettapascal(zettapascal)

Tuple Fields

zettapascals

exapascal(exapascal)

Tuple Fields

exapascals

petapascal(petapascal)

Tuple Fields

petapascals

terapascal(terapascal)

Tuple Fields

terapascals

gigapascal(gigapascal)

Tuple Fields

gigapascals

megapascal(megapascal)

Tuple Fields

megapascals

kilopascal(kilopascal)

Tuple Fields

kilopascals

hectopascal(hectopascal)

Tuple Fields

hectopascals

decapascal(decapascal)

Tuple Fields

decapascals

pascal(pascal)

Tuple Fields

0: pascal

pascals

decipascal(decipascal)

Tuple Fields

decipascals

centipascal(centipascal)

Tuple Fields

centipascals

millipascal(millipascal)

Tuple Fields

millipascals

micropascal(micropascal)

Tuple Fields

micropascals

nanopascal(nanopascal)

Tuple Fields

nanopascals

picopascal(picopascal)

Tuple Fields

picopascals

femtopascal(femtopascal)

Tuple Fields

femtopascals

attopascal(attopascal)

Tuple Fields

attopascals

zeptopascal(zeptopascal)

Tuple Fields

zeptopascals

yoctopascal(yoctopascal)

Tuple Fields

yoctopascals

atmosphere(atmosphere)

Tuple Fields

atmospheres

atmosphere_technical(atmosphere_technical)

Tuple Fields

atmospheres (technical)

bar(bar)

Tuple Fields

0: bar

bar

centimeter_of_mercury_0(centimeter_of_mercury_0)

Tuple Fields

centimeters of mercury (0 °C)

centimeter_of_mercury(centimeter_of_mercury)

Tuple Fields

centimeters of mercury

centimeter_of_water_4(centimeter_of_water_4)

Tuple Fields

centimeters of water (4 °C)

centimeter_of_water(centimeter_of_water)

Tuple Fields

centimeters of water

dyne_per_square_centimeter(dyne_per_square_centimeter)

dynes per square centimeter

foot_of_mercury(foot_of_mercury)

Tuple Fields

feet of mercury

foot_of_water_39_2(foot_of_water_39_2)

Tuple Fields

feet of water (39.2 °F)

foot_of_water(foot_of_water)

Tuple Fields

feet of water

gram_force_per_square_centimeter(gram_force_per_square_centimeter)

grams-force per square centimeter

inch_of_mercury_32(inch_of_mercury_32)

Tuple Fields

inches of mercury (32 °F)

inch_of_mercury_60(inch_of_mercury_60)

Tuple Fields

inches of mercury (60 °F)

inch_of_mercury(inch_of_mercury)

Tuple Fields

inches of mercury

inch_of_water_39_2(inch_of_water_39_2)

Tuple Fields

inches of water (39.2 °F)

inch_of_water_60(inch_of_water_60)

Tuple Fields

inches of water (60 °F)

inch_of_water(inch_of_water)

Tuple Fields

inches of water

kilogram_force_per_square_centimeter(kilogram_force_per_square_centimeter)

kilograms-force per square centimeter

kilogram_force_per_square_meter(kilogram_force_per_square_meter)

kilograms-force per square meter

kilogram_force_per_square_millimeter(kilogram_force_per_square_millimeter)

kilograms-force per square millimeter

kip_per_square_inch(kip_per_square_inch)

Tuple Fields

kips per square inch

millibar(millibar)

Tuple Fields

millibar

millimeter_of_mercury(millimeter_of_mercury)

Tuple Fields

millimeters of mercury

millimeter_of_water(millimeter_of_water)

Tuple Fields

millimeters of water

millitorr(millitorr)

Tuple Fields

millitorr

poundal_per_square_foot(poundal_per_square_foot)

Tuple Fields

poundals per square foot

pound_force_per_square_foot(pound_force_per_square_foot)

pounds-force per square foot

pound_force_per_square_inch(pound_force_per_square_inch)

pounds-force per square inch

psi(psi)

Tuple Fields

0: psi

pounds-force per square inch

torr(torr)

Tuple Fields

0: torr

torr

Implementations

Unit abbreviation.

Unit singular description.

Unit plural description.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.