Enum uom::si::acceleration::Units

source ·
#[non_exhaustive]
pub enum Units {
Show 26 variants yottameter_per_second_squared(yottameter_per_second_squared), zettameter_per_second_squared(zettameter_per_second_squared), exameter_per_second_squared(exameter_per_second_squared), petameter_per_second_squared(petameter_per_second_squared), terameter_per_second_squared(terameter_per_second_squared), gigameter_per_second_squared(gigameter_per_second_squared), megameter_per_second_squared(megameter_per_second_squared), kilometer_per_second_squared(kilometer_per_second_squared), hectometer_per_second_squared(hectometer_per_second_squared), decameter_per_second_squared(decameter_per_second_squared), meter_per_second_squared(meter_per_second_squared), decimeter_per_second_squared(decimeter_per_second_squared), centimeter_per_second_squared(centimeter_per_second_squared), millimeter_per_second_squared(millimeter_per_second_squared), micrometer_per_second_squared(micrometer_per_second_squared), nanometer_per_second_squared(nanometer_per_second_squared), picometer_per_second_squared(picometer_per_second_squared), femtometer_per_second_squared(femtometer_per_second_squared), attometer_per_second_squared(attometer_per_second_squared), zeptometer_per_second_squared(zeptometer_per_second_squared), yoctometer_per_second_squared(yoctometer_per_second_squared), foot_per_second_squared(foot_per_second_squared), galileo(galileo), inch_per_second_squared(inch_per_second_squared), millimeter_per_minute_squared(millimeter_per_minute_squared), standard_gravity(standard_gravity),
}
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.
§

yottameter_per_second_squared(yottameter_per_second_squared)

yottameters per second squared

§

zettameter_per_second_squared(zettameter_per_second_squared)

zettameters per second squared

§

exameter_per_second_squared(exameter_per_second_squared)

exameters per second squared

§

petameter_per_second_squared(petameter_per_second_squared)

petameters per second squared

§

terameter_per_second_squared(terameter_per_second_squared)

terameters per second squared

§

gigameter_per_second_squared(gigameter_per_second_squared)

gigameters per second squared

§

megameter_per_second_squared(megameter_per_second_squared)

megameters per second squared

§

kilometer_per_second_squared(kilometer_per_second_squared)

kilometers per second squared

§

hectometer_per_second_squared(hectometer_per_second_squared)

hectometers per second squared

§

decameter_per_second_squared(decameter_per_second_squared)

decameters per second squared

§

meter_per_second_squared(meter_per_second_squared)

meters per second squared

§

decimeter_per_second_squared(decimeter_per_second_squared)

decimeters per second squared

§

centimeter_per_second_squared(centimeter_per_second_squared)

centimeters per second squared

§

millimeter_per_second_squared(millimeter_per_second_squared)

millimeters per second squared

§

micrometer_per_second_squared(micrometer_per_second_squared)

micrometers per second squared

§

nanometer_per_second_squared(nanometer_per_second_squared)

nanometers per second squared

§

picometer_per_second_squared(picometer_per_second_squared)

picometers per second squared

§

femtometer_per_second_squared(femtometer_per_second_squared)

femtometers per second squared

§

attometer_per_second_squared(attometer_per_second_squared)

attometers per second squared

§

zeptometer_per_second_squared(zeptometer_per_second_squared)

zeptometers per second squared

§

yoctometer_per_second_squared(yoctometer_per_second_squared)

yoctometers per second squared

§

foot_per_second_squared(foot_per_second_squared)

feet per second squared

§

galileo(galileo)

galileos

§

inch_per_second_squared(inch_per_second_squared)

inches per second squared

§

millimeter_per_minute_squared(millimeter_per_minute_squared)

millimeters per minute squared

§

standard_gravity(standard_gravity)

standard accelerations of gravity

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.