Struct uom::si::reciprocal_length::reciprocal_millimeter
source · pub struct reciprocal_millimeter;
Expand description
reciprocal millimeters
Trait Implementations§
source§impl Clone for reciprocal_millimeter
impl Clone for reciprocal_millimeter
source§fn clone(&self) -> reciprocal_millimeter
fn clone(&self) -> reciprocal_millimeter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Conversion<u16> for reciprocal_millimeter
impl Conversion<u16> for reciprocal_millimeter
source§fn coefficient() -> Self::T
fn coefficient() -> Self::T
Coefficient portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. Implementation should return the multiplicative identity
(Self::T::one()
) if no coefficient exists.source§fn constant(op: ConstantOp) -> Self::T
fn constant(op: ConstantOp) -> Self::T
Constant portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. 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<u32> for reciprocal_millimeter
impl Conversion<u32> for reciprocal_millimeter
source§fn coefficient() -> Self::T
fn coefficient() -> Self::T
Coefficient portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. Implementation should return the multiplicative identity
(Self::T::one()
) if no coefficient exists.source§fn constant(op: ConstantOp) -> Self::T
fn constant(op: ConstantOp) -> Self::T
Constant portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. 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<u8> for reciprocal_millimeter
impl Conversion<u8> for reciprocal_millimeter
source§fn coefficient() -> Self::T
fn coefficient() -> Self::T
Coefficient portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. Implementation should return the multiplicative identity
(Self::T::one()
) if no coefficient exists.source§fn constant(op: ConstantOp) -> Self::T
fn constant(op: ConstantOp) -> Self::T
Constant portion of conversion factor for
converting the given unit. To convert to the base unit for the quantity use
(value + constant()) * coefficient()
. To convert from the base unit, (value / coefficient()) - constant()
is used. 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 Debug for reciprocal_millimeter
impl Debug for reciprocal_millimeter
source§impl Hash for reciprocal_millimeter
impl Hash for reciprocal_millimeter
source§impl Unit for reciprocal_millimeter
impl Unit for reciprocal_millimeter
impl Conversion<u16> for reciprocal_millimeter
impl Conversion<u32> for reciprocal_millimeter
impl Conversion<u8> for reciprocal_millimeter
impl Copy for reciprocal_millimeter
impl Unit for reciprocal_millimeter
Auto Trait Implementations§
impl Freeze for reciprocal_millimeter
impl RefUnwindSafe for reciprocal_millimeter
impl Send for reciprocal_millimeter
impl Sync for reciprocal_millimeter
impl Unpin for reciprocal_millimeter
impl UnwindSafe for reciprocal_millimeter
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