pub struct meter;Expand description
The meter is the SI unit of length. It is defined by taking the fixed numerical value of the speed of light in vacuum c to be 299 792 458 when expressed in the unit m s⁻¹, where the second is defined in terms of the caesium frequency ∆νCs.
Trait Implementations§
Source§impl Conversion<f32> for meter
impl Conversion<f32> for meter
Source§fn coefficient() -> <meter as Conversion<f32>>::T
fn coefficient() -> <meter as Conversion<f32>>::T
Coefficient portion of conversion factor for
converting the given unit to the base unit for the quantity:
(value * coefficient()) + constant(). Implementation should return the multiplicative identity (Self::T::one()) if
no coefficient exists.Source§fn constant(op: ConstantOp) -> <meter as Conversion<f32>>::T
fn constant(op: ConstantOp) -> <meter as Conversion<f32>>::T
Constant portion of conversion factor for
converting the given unit to the base unit for the quantity:
(value * coefficient()) + constant(). Implementation should return the additive identity (Self::T::zero()) if no
constant exists. See ConstantOp documentation for details about
parameter use to ensure the method optimizes correctly.Source§fn conversion(&self) -> Self::Twhere
Self: Sized,
fn conversion(&self) -> Self::Twhere
Self: Sized,
Instance conversion factor. Read more
Source§impl Conversion<f64> for meter
impl Conversion<f64> for meter
Source§fn coefficient() -> <meter as Conversion<f64>>::T
fn coefficient() -> <meter as Conversion<f64>>::T
Coefficient portion of conversion factor for
converting the given unit to the base unit for the quantity:
(value * coefficient()) + constant(). Implementation should return the multiplicative identity (Self::T::one()) if
no coefficient exists.Source§fn constant(op: ConstantOp) -> <meter as Conversion<f64>>::T
fn constant(op: ConstantOp) -> <meter as Conversion<f64>>::T
Constant portion of conversion factor for
converting the given unit to the base unit for the quantity:
(value * coefficient()) + constant(). Implementation should return the additive identity (Self::T::zero()) if no
constant exists. See ConstantOp documentation for details about
parameter use to ensure the method optimizes correctly.Source§fn conversion(&self) -> Self::Twhere
Self: Sized,
fn conversion(&self) -> Self::Twhere
Self: Sized,
Instance conversion factor. Read more
impl Conversion<f32> for meter
impl Conversion<f64> for meter
impl Copy for meter
impl Unit for meter
Auto Trait Implementations§
impl Freeze for meter
impl RefUnwindSafe for meter
impl Send for meter
impl Sync for meter
impl Unpin for meter
impl UnwindSafe for meter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more