pub enum Units {
Show 31 variants yottawatt(yottawatt), zettawatt(zettawatt), exawatt(exawatt), petawatt(petawatt), terawatt(terawatt), gigawatt(gigawatt), megawatt(megawatt), kilowatt(kilowatt), hectowatt(hectowatt), decawatt(decawatt), watt(watt), deciwatt(deciwatt), centiwatt(centiwatt), milliwatt(milliwatt), microwatt(microwatt), nanowatt(nanowatt), picowatt(picowatt), femtowatt(femtowatt), attowatt(attowatt), zeptowatt(zeptowatt), yoctowatt(yoctowatt), erg_per_second(erg_per_second), foot_pound_per_hour(foot_pound_per_hour), foot_pound_per_minute(foot_pound_per_minute), foot_pound_per_second(foot_pound_per_second), horsepower(horsepower), horsepower_boiler(horsepower_boiler), horsepower_electric(horsepower_electric), horsepower_metric(horsepower_metric), horsepower_imperial(horsepower_imperial), hydraulic_horsepower(hydraulic_horsepower), // some variants omitted
}
Expand description

Unit enum.

Variants

yottawatt(yottawatt)

Tuple Fields

yottawatts

zettawatt(zettawatt)

Tuple Fields

zettawatts

exawatt(exawatt)

Tuple Fields

exawatts

petawatt(petawatt)

Tuple Fields

petawatts

terawatt(terawatt)

Tuple Fields

terawatts

gigawatt(gigawatt)

Tuple Fields

gigawatts

megawatt(megawatt)

Tuple Fields

megawatts

kilowatt(kilowatt)

Tuple Fields

kilowatts

hectowatt(hectowatt)

Tuple Fields

hectowatts

decawatt(decawatt)

Tuple Fields

decawatts

watt(watt)

Tuple Fields

0: watt

watts

deciwatt(deciwatt)

Tuple Fields

deciwatts

centiwatt(centiwatt)

Tuple Fields

centiwatts

milliwatt(milliwatt)

Tuple Fields

milliwatts

microwatt(microwatt)

Tuple Fields

microwatts

nanowatt(nanowatt)

Tuple Fields

nanowatts

picowatt(picowatt)

Tuple Fields

picowatts

femtowatt(femtowatt)

Tuple Fields

femtowatts

attowatt(attowatt)

Tuple Fields

attowatts

zeptowatt(zeptowatt)

Tuple Fields

zeptowatts

yoctowatt(yoctowatt)

Tuple Fields

yoctowatts

erg_per_second(erg_per_second)

Tuple Fields

ergs per second

foot_pound_per_hour(foot_pound_per_hour)

Tuple Fields

foot pounds-force per hour

foot_pound_per_minute(foot_pound_per_minute)

Tuple Fields

foot pounds-force per minute

foot_pound_per_second(foot_pound_per_second)

Tuple Fields

foot pounds-force per second

horsepower(horsepower)

Tuple Fields

horsepower

horsepower_boiler(horsepower_boiler)

Tuple Fields

horsepower (boiler)

horsepower_electric(horsepower_electric)

Tuple Fields

horsepower (electric)

horsepower_metric(horsepower_metric)

Tuple Fields

metric horsepower

horsepower_imperial(horsepower_imperial)

Tuple Fields

horsepower (Imperial)

hydraulic_horsepower(hydraulic_horsepower)

Tuple Fields

hydraulic horsepower

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.