Enum uom::si::volume::Units

source ·
#[non_exhaustive]
pub enum Units {
Show 66 variants cubic_yottameter(cubic_yottameter), cubic_zettameter(cubic_zettameter), cubic_exameter(cubic_exameter), cubic_petameter(cubic_petameter), cubic_terameter(cubic_terameter), cubic_gigameter(cubic_gigameter), cubic_megameter(cubic_megameter), cubic_kilometer(cubic_kilometer), cubic_hectometer(cubic_hectometer), cubic_decameter(cubic_decameter), cubic_meter(cubic_meter), cubic_decimeter(cubic_decimeter), cubic_centimeter(cubic_centimeter), cubic_millimeter(cubic_millimeter), cubic_micrometer(cubic_micrometer), cubic_nanometer(cubic_nanometer), cubic_picometer(cubic_picometer), cubic_femtometer(cubic_femtometer), cubic_attometer(cubic_attometer), cubic_zeptometer(cubic_zeptometer), cubic_yoctometer(cubic_yoctometer), acre_foot(acre_foot), barrel(barrel), bushel(bushel), cord(cord), cubic_foot(cubic_foot), cubic_inch(cubic_inch), cubic_mile(cubic_mile), cubic_yard(cubic_yard), cup(cup), fluid_ounce(fluid_ounce), fluid_ounce_imperial(fluid_ounce_imperial), gallon_imperial(gallon_imperial), gallon(gallon), gill_imperial(gill_imperial), gill(gill), yottaliter(yottaliter), zettaliter(zettaliter), exaliter(exaliter), petaliter(petaliter), teraliter(teraliter), gigaliter(gigaliter), megaliter(megaliter), kiloliter(kiloliter), hectoliter(hectoliter), decaliter(decaliter), liter(liter), deciliter(deciliter), centiliter(centiliter), milliliter(milliliter), microliter(microliter), nanoliter(nanoliter), picoliter(picoliter), femtoliter(femtoliter), attoliter(attoliter), zeptoliter(zeptoliter), yoctoliter(yoctoliter), peck(peck), pint_dry(pint_dry), pint_liquid(pint_liquid), quart_dry(quart_dry), quart_liquid(quart_liquid), stere(stere), tablespoon(tablespoon), teaspoon(teaspoon), register_ton(register_ton),
}
Expand description

Unit enum.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

cubic_yottameter(cubic_yottameter)

cubic yottameters

§

cubic_zettameter(cubic_zettameter)

cubic zettameters

§

cubic_exameter(cubic_exameter)

cubic exameters

§

cubic_petameter(cubic_petameter)

cubic petameters

§

cubic_terameter(cubic_terameter)

cubic terameters

§

cubic_gigameter(cubic_gigameter)

cubic gigameters

§

cubic_megameter(cubic_megameter)

cubic megameters

§

cubic_kilometer(cubic_kilometer)

cubic kilometers

§

cubic_hectometer(cubic_hectometer)

cubic hectometers

§

cubic_decameter(cubic_decameter)

cubic decameters

§

cubic_meter(cubic_meter)

cubic meters

§

cubic_decimeter(cubic_decimeter)

cubic decimeters

§

cubic_centimeter(cubic_centimeter)

cubic centimeters

§

cubic_millimeter(cubic_millimeter)

cubic millimeters

§

cubic_micrometer(cubic_micrometer)

cubic micrometers

§

cubic_nanometer(cubic_nanometer)

cubic nanometers

§

cubic_picometer(cubic_picometer)

cubic picometers

§

cubic_femtometer(cubic_femtometer)

cubic femtometers

§

cubic_attometer(cubic_attometer)

cubic attometers

§

cubic_zeptometer(cubic_zeptometer)

cubic zeptometers

§

cubic_yoctometer(cubic_yoctometer)

cubic yoctometers

§

acre_foot(acre_foot)

acre-feet

§

barrel(barrel)

barrels

§

bushel(bushel)

bushels

§

cord(cord)

cords

§

cubic_foot(cubic_foot)

cubic feet

§

cubic_inch(cubic_inch)

cubic inches

§

cubic_mile(cubic_mile)

cubic miles

§

cubic_yard(cubic_yard)

cubic yards

§

cup(cup)

cups

§

fluid_ounce(fluid_ounce)

fluid ounces

§

fluid_ounce_imperial(fluid_ounce_imperial)

Imperial fluid ounces

§

gallon_imperial(gallon_imperial)

Imperial gallons

§

gallon(gallon)

gallons

§

gill_imperial(gill_imperial)

Imperial gills

§

gill(gill)

gills

§

yottaliter(yottaliter)

yottaliters

§

zettaliter(zettaliter)

zettaliters

§

exaliter(exaliter)

exaliters

§

petaliter(petaliter)

petaliters

§

teraliter(teraliter)

teraliters

§

gigaliter(gigaliter)

gigaliters

§

megaliter(megaliter)

megaliters

§

kiloliter(kiloliter)

kiloliters

§

hectoliter(hectoliter)

hectoliters

§

decaliter(decaliter)

decaliters

§

liter(liter)

liters

§

deciliter(deciliter)

deciliters

§

centiliter(centiliter)

centiliters

§

milliliter(milliliter)

milliliters

§

microliter(microliter)

microliters

§

nanoliter(nanoliter)

nanoliters

§

picoliter(picoliter)

picoliters

§

femtoliter(femtoliter)

femtoliters

§

attoliter(attoliter)

attoliters

§

zeptoliter(zeptoliter)

zeptoliters

§

yoctoliter(yoctoliter)

yoctoliters

§

peck(peck)

pecks

§

pint_dry(pint_dry)

dry pints

§

pint_liquid(pint_liquid)

liquid pints

§

quart_dry(quart_dry)

dry quarts

§

quart_liquid(quart_liquid)

liquid quarts

§

stere(stere)

steres

§

tablespoon(tablespoon)

tablespoons

§

teaspoon(teaspoon)

teaspoons

§

register_ton(register_ton)

register tons

Implementations§

source§

impl Units

source

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

Unit abbreviation.

source

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

Unit singular description.

source

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

Unit plural description.

Trait Implementations§

source§

impl Clone for Units

source§

fn clone(&self) -> Units

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Units

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for Units

Auto Trait Implementations§

§

impl Freeze for Units

§

impl RefUnwindSafe for Units

§

impl Send for Units

§

impl Sync for Units

§

impl Unpin for Units

§

impl UnwindSafe for Units

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.