pub enum Units {
Show 23 variants yottavolt(yottavolt), zettavolt(zettavolt), exavolt(exavolt), petavolt(petavolt), teravolt(teravolt), gigavolt(gigavolt), megavolt(megavolt), kilovolt(kilovolt), hectovolt(hectovolt), decavolt(decavolt), volt(volt), decivolt(decivolt), centivolt(centivolt), millivolt(millivolt), microvolt(microvolt), nanovolt(nanovolt), picovolt(picovolt), femtovolt(femtovolt), attovolt(attovolt), zeptovolt(zeptovolt), yoctovolt(yoctovolt), abvolt(abvolt), statvolt(statvolt), // some variants omitted
}
Expand description

Unit enum.

Variants

yottavolt(yottavolt)

Tuple Fields

yottavolts

zettavolt(zettavolt)

Tuple Fields

zettavolts

exavolt(exavolt)

Tuple Fields

exavolts

petavolt(petavolt)

Tuple Fields

petavolts

teravolt(teravolt)

Tuple Fields

teravolts

gigavolt(gigavolt)

Tuple Fields

gigavolts

megavolt(megavolt)

Tuple Fields

megavolts

kilovolt(kilovolt)

Tuple Fields

kilovolts

hectovolt(hectovolt)

Tuple Fields

hectovolts

decavolt(decavolt)

Tuple Fields

decavolts

volt(volt)

Tuple Fields

0: volt

volts

decivolt(decivolt)

Tuple Fields

decivolts

centivolt(centivolt)

Tuple Fields

centivolts

millivolt(millivolt)

Tuple Fields

millivolts

microvolt(microvolt)

Tuple Fields

microvolts

nanovolt(nanovolt)

Tuple Fields

nanovolts

picovolt(picovolt)

Tuple Fields

picovolts

femtovolt(femtovolt)

Tuple Fields

femtovolts

attovolt(attovolt)

Tuple Fields

attovolts

zeptovolt(zeptovolt)

Tuple Fields

zeptovolts

yoctovolt(yoctovolt)

Tuple Fields

yoctovolts

abvolt(abvolt)

Tuple Fields

0: abvolt

abvolts

statvolt(statvolt)

Tuple Fields

statvolts

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.