Struct uom::si::length::zeptometer
source · pub struct zeptometer;
Expand description
zeptometers
Trait Implementations§
source§impl Clone for zeptometer
impl Clone for zeptometer
source§fn clone(&self) -> zeptometer
fn clone(&self) -> zeptometer
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 zeptometer
impl Conversion<u16> for zeptometer
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 zeptometer
impl Conversion<u32> for zeptometer
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 zeptometer
impl Conversion<u8> for zeptometer
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 zeptometer
impl Debug for zeptometer
source§impl Hash for zeptometer
impl Hash for zeptometer
source§impl Unit for zeptometer
impl Unit for zeptometer
impl Conversion<u16> for zeptometer
impl Conversion<u32> for zeptometer
impl Conversion<u8> for zeptometer
impl Copy for zeptometer
impl Unit for zeptometer
Auto Trait Implementations§
impl Freeze for zeptometer
impl RefUnwindSafe for zeptometer
impl Send for zeptometer
impl Sync for zeptometer
impl Unpin for zeptometer
impl UnwindSafe for zeptometer
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