pub enum Units {
Show 23 variants yottatesla(yottatesla), zettatesla(zettatesla), exatesla(exatesla), petatesla(petatesla), teratesla(teratesla), gigatesla(gigatesla), megatesla(megatesla), kilotesla(kilotesla), hectotesla(hectotesla), decatesla(decatesla), tesla(tesla), decitesla(decitesla), centitesla(centitesla), millitesla(millitesla), microtesla(microtesla), nanotesla(nanotesla), picotesla(picotesla), femtotesla(femtotesla), attotesla(attotesla), zeptotesla(zeptotesla), yoctotesla(yoctotesla), gamma(gamma), gauss(gauss), // some variants omitted
}
Expand description

Unit enum.

Variants

yottatesla(yottatesla)

Tuple Fields

yottateslas

zettatesla(zettatesla)

Tuple Fields

zettateslas

exatesla(exatesla)

Tuple Fields

exateslas

petatesla(petatesla)

Tuple Fields

petateslas

teratesla(teratesla)

Tuple Fields

terateslas

gigatesla(gigatesla)

Tuple Fields

gigateslas

megatesla(megatesla)

Tuple Fields

megateslas

kilotesla(kilotesla)

Tuple Fields

kiloteslas

hectotesla(hectotesla)

Tuple Fields

hectoteslas

decatesla(decatesla)

Tuple Fields

decateslas

tesla(tesla)

Tuple Fields

0: tesla

teslas

decitesla(decitesla)

Tuple Fields

deciteslas

centitesla(centitesla)

Tuple Fields

centiteslas

millitesla(millitesla)

Tuple Fields

milliteslas

microtesla(microtesla)

Tuple Fields

microteslas

nanotesla(nanotesla)

Tuple Fields

nanoteslas

picotesla(picotesla)

Tuple Fields

picoteslas

femtotesla(femtotesla)

Tuple Fields

femtoteslas

attotesla(attotesla)

Tuple Fields

attoteslas

zeptotesla(zeptotesla)

Tuple Fields

zeptoteslas

yoctotesla(yoctotesla)

Tuple Fields

yoctoteslas

gamma(gamma)

Tuple Fields

0: gamma

gammas

gauss(gauss)

Tuple Fields

0: gauss

gauss

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.