#[repr(transparent)]pub struct ReciprocalLength {
pub value: f64,
}Fields§
§value: f64Implementations§
Source§impl ReciprocalLength
impl ReciprocalLength
pub fn new<U>(value: f64) -> Selfwhere
U: Conversion<f64>,
pub fn get<U>(&self) -> f64where
U: Conversion<f64>,
pub fn raw(&self) -> f64
pub fn into_uom(self) -> ReciprocalLength
pub fn as_uom(&self) -> ReciprocalLength
pub fn from_uom(inner: ReciprocalLength) -> Self
Trait Implementations§
Source§impl Add for ReciprocalLength
impl Add for ReciprocalLength
Source§impl AddAssign for ReciprocalLength
impl AddAssign for ReciprocalLength
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<'de, Context> BorrowDecode<'de, Context> for ReciprocalLength
impl<'de, Context> BorrowDecode<'de, Context> for ReciprocalLength
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ReciprocalLength
impl Clone for ReciprocalLength
Source§fn clone(&self) -> ReciprocalLength
fn clone(&self) -> ReciprocalLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReciprocalLength
Source§impl Debug for ReciprocalLength
impl Debug for ReciprocalLength
Source§impl DebugScalarType for ReciprocalLength
impl DebugScalarType for ReciprocalLength
Source§impl<Context> Decode<Context> for ReciprocalLength
impl<Context> Decode<Context> for ReciprocalLength
Source§impl Default for ReciprocalLength
impl Default for ReciprocalLength
Source§impl<'de> Deserialize<'de> for ReciprocalLength
impl<'de> Deserialize<'de> for ReciprocalLength
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<f64> for ReciprocalLength
impl Div<f64> for ReciprocalLength
Source§impl DivAssign<f64> for ReciprocalLength
impl DivAssign<f64> for ReciprocalLength
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl Encode for ReciprocalLength
impl Encode for ReciprocalLength
Source§impl From<Quantity<dyn Dimension<J = Z0, L = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, T = Z0, Kind = dyn Kind, Th = Z0, M = Z0>, dyn Units<f64, electric_current = ampere, length = meter, amount_of_substance = mole, time = second, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for ReciprocalLength
impl From<Quantity<dyn Dimension<J = Z0, L = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, T = Z0, Kind = dyn Kind, Th = Z0, M = Z0>, dyn Units<f64, electric_current = ampere, length = meter, amount_of_substance = mole, time = second, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for ReciprocalLength
Source§fn from(value: ReciprocalLength) -> Self
fn from(value: ReciprocalLength) -> Self
Converts to this type from the input type.
Source§impl From<ReciprocalLength> for ReciprocalLength
impl From<ReciprocalLength> for ReciprocalLength
Source§fn from(value: ReciprocalLength) -> Self
fn from(value: ReciprocalLength) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for ReciprocalLength
impl Mul<f64> for ReciprocalLength
Source§impl MulAssign<f64> for ReciprocalLength
impl MulAssign<f64> for ReciprocalLength
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl Neg for ReciprocalLength
impl Neg for ReciprocalLength
Source§impl PartialEq for ReciprocalLength
impl PartialEq for ReciprocalLength
Source§impl PartialOrd for ReciprocalLength
impl PartialOrd for ReciprocalLength
Source§impl Serialize for ReciprocalLength
impl Serialize for ReciprocalLength
impl StructuralPartialEq for ReciprocalLength
Source§impl Sub for ReciprocalLength
impl Sub for ReciprocalLength
Source§impl SubAssign for ReciprocalLength
impl SubAssign for ReciprocalLength
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for ReciprocalLength
impl RefUnwindSafe for ReciprocalLength
impl Send for ReciprocalLength
impl Sync for ReciprocalLength
impl Unpin for ReciprocalLength
impl UnsafeUnpin for ReciprocalLength
impl UnwindSafe for ReciprocalLength
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more