Enum uom::si::energy::Units[][src]

pub enum Units {
    yottajoule(yottajoule),
    zettajoule(zettajoule),
    exajoule(exajoule),
    petajoule(petajoule),
    terajoule(terajoule),
    gigajoule(gigajoule),
    megajoule(megajoule),
    kilojoule(kilojoule),
    hectojoule(hectojoule),
    decajoule(decajoule),
    joule(joule),
    decijoule(decijoule),
    centijoule(centijoule),
    millijoule(millijoule),
    microjoule(microjoule),
    nanojoule(nanojoule),
    picojoule(picojoule),
    femtojoule(femtojoule),
    attojoule(attojoule),
    zeptojoule(zeptojoule),
    yoctojoule(yoctojoule),
    petawatt_hour(petawatt_hour),
    terawatt_hour(terawatt_hour),
    gigawatt_hour(gigawatt_hour),
    megawatt_hour(megawatt_hour),
    kilowatt_hour(kilowatt_hour),
    hectowatt_hour(hectowatt_hour),
    decawatt_hour(decawatt_hour),
    watt_hour(watt_hour),
    milliwatt_hour(milliwatt_hour),
    microwatt_hour(microwatt_hour),
    petaelectronvolt(petaelectronvolt),
    teraelectronvolt(teraelectronvolt),
    gigaelectronvolt(gigaelectronvolt),
    megaelectronvolt(megaelectronvolt),
    kiloelectronvolt(kiloelectronvolt),
    hectoelectronvolt(hectoelectronvolt),
    decaelectronvolt(decaelectronvolt),
    electronvolt(electronvolt),
    btu_it(btu_it),
    btu(btu),
    btu_39(btu_39),
    btu_59(btu_59),
    btu_60(btu_60),
    calorie_it(calorie_it),
    calorie(calorie),
    calorie_15(calorie_15),
    calorie_20(calorie_20),
    calorie_it_nutrition(calorie_it_nutrition),
    calorie_nutrition(calorie_nutrition),
    erg(erg),
    foot_poundal(foot_poundal),
    foot_pound(foot_pound),
    kilocalorie_it(kilocalorie_it),
    kilocalorie(kilocalorie),
    quad(quad),
    therm_ec(therm_ec),
    therm_us(therm_us),
    ton_tnt(ton_tnt),
    watt_second(watt_second),
    // some variants omitted
}

Unit enum.

Variants

yottajoule(yottajoule)

yottajoules

zettajoule(zettajoule)

zettajoules

exajoule(exajoule)

exajoules

petajoule(petajoule)

petajoules

terajoule(terajoule)

terajoules

gigajoule(gigajoule)

gigajoules

megajoule(megajoule)

megajoules

kilojoule(kilojoule)

kilojoules

hectojoule(hectojoule)

hectojoules

decajoule(decajoule)

decajoules

joule(joule)

joules

decijoule(decijoule)

decijoules

centijoule(centijoule)

centijoules

millijoule(millijoule)

milljoules

microjoule(microjoule)

microjoules

nanojoule(nanojoule)

nanojoules

picojoule(picojoule)

picojoules

femtojoule(femtojoule)

femtojoules

attojoule(attojoule)

attojoules

zeptojoule(zeptojoule)

zeptojoules

yoctojoule(yoctojoule)

yoctojoules

petawatt_hour(petawatt_hour)

petawatt hours

terawatt_hour(terawatt_hour)

terawatt hours

gigawatt_hour(gigawatt_hour)

gigawatt hours

megawatt_hour(megawatt_hour)

megawatt hours

kilowatt_hour(kilowatt_hour)

kilowatt hours

hectowatt_hour(hectowatt_hour)

hectowatt hours

decawatt_hour(decawatt_hour)

decawatt hours

watt_hour(watt_hour)

watt hours

milliwatt_hour(milliwatt_hour)

milliwatt hours

microwatt_hour(microwatt_hour)

microwatt hours

petaelectronvolt(petaelectronvolt)

petaelectronvolts

teraelectronvolt(teraelectronvolt)

teraelectronvolts

gigaelectronvolt(gigaelectronvolt)

gigaelectronvolts

megaelectronvolt(megaelectronvolt)

megaelectronvolts

kiloelectronvolt(kiloelectronvolt)

kiloelectronvolts

hectoelectronvolt(hectoelectronvolt)

hectoelectronvolts

decaelectronvolt(decaelectronvolt)

decaelectronvolts

electronvolt(electronvolt)

electronvolts

btu_it(btu_it)

British thermal units (IT)

btu(btu)

British thermal units

btu_39(btu_39)

British thermal units (39 °F)

btu_59(btu_59)

British thermal units (59 °F)

btu_60(btu_60)

British thermal units (60 °F)

calorie_it(calorie_it)

calories (IT)

calorie(calorie)

calories

calorie_15(calorie_15)

calories (15 °C)

calorie_20(calorie_20)

calories (20 °C)

calorie_it_nutrition(calorie_it_nutrition)

Calories (IT)

calorie_nutrition(calorie_nutrition)

Calories

erg(erg)

ergs

foot_poundal(foot_poundal)

foot poundals

foot_pound(foot_pound)

foot pounds-force

kilocalorie_it(kilocalorie_it)

kilocalories (IT)

kilocalorie(kilocalorie)

kilocalories

quad(quad)

quads

therm_ec(therm_ec)

therms (EC)

therm_us(therm_us)

therms

ton_tnt(ton_tnt)

tons of TNT

watt_second(watt_second)

watt seconds

Implementations

impl Units[src]

pub fn abbreviation(&self) -> &'static str[src]

Unit abbreviation.

pub fn singular(&self) -> &'static str[src]

Unit singular description.

pub fn plural(&self) -> &'static str[src]

Unit plural description.

Trait Implementations

impl Clone for Units[src]

impl Copy for Units[src]

impl Debug for Units[src]

Auto Trait Implementations

impl RefUnwindSafe for Units

impl Send for Units

impl Sync for Units

impl Unpin for Units

impl UnwindSafe for Units

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.