EngUnit

Struct EngUnit 

Source
pub struct EngUnit {
Show 17 fields pub value: f64, pub amount_of_substance_count: i32, pub amount_of_substance_unit: AmountOfSubstanceUnit, pub electric_current_count: i32, pub electric_current_unit: ElectricCurrentUnit, pub length_count: i32, pub length_unit: LengthUnit, pub luminous_intensity_count: i32, pub luminous_intensity_unit: LuminousIntensityUnit, pub mass_count: i32, pub mass_unit: MassUnit, pub temperature_count: i32, pub temperature_unit: TemperatureDeltaUnit, pub time_count: i32, pub time_unit: TimeUnit, pub unit_numerator: Vec<ComplexUnit>, pub unit_denominator: Vec<ComplexUnit>,
}

Fields§

§value: f64§amount_of_substance_count: i32§amount_of_substance_unit: AmountOfSubstanceUnit§electric_current_count: i32§electric_current_unit: ElectricCurrentUnit§length_count: i32§length_unit: LengthUnit§luminous_intensity_count: i32§luminous_intensity_unit: LuminousIntensityUnit§mass_count: i32§mass_unit: MassUnit§temperature_count: i32§temperature_unit: TemperatureDeltaUnit§time_count: i32§time_unit: TimeUnit§unit_numerator: Vec<ComplexUnit>§unit_denominator: Vec<ComplexUnit>

Implementations§

Trait Implementations§

Source§

impl Clone for EngUnit

Source§

fn clone(&self) -> EngUnit

Returns a duplicate 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 EngUnit

Source§

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

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

impl Default for EngUnit

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for EngUnit

Source§

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

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

impl Div for &EngUnit

Source§

type Output = EngUnit

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for EngUnit

Source§

type Output = EngUnit

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Mul<&EngUnit> for f64

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, lhs: &EngUnit) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<EngUnit> for f64

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, lhs: EngUnit) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for &EngUnit

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for EngUnit

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for &EngUnit

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for EngUnit

Source§

type Output = EngUnit

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.