Struct uom::si::electric_potential::hectovolt
source · pub struct hectovolt;
Expand description
hectovolts
Trait Implementations§
source§impl Conversion<u16> for hectovolt
impl Conversion<u16> for hectovolt
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 hectovolt
impl Conversion<u32> for hectovolt
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 hectovolt
impl Conversion<u8> for hectovolt
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
impl Conversion<u16> for hectovolt
impl Conversion<u32> for hectovolt
impl Conversion<u8> for hectovolt
impl Copy for hectovolt
impl Unit for hectovolt
Auto Trait Implementations§
impl Freeze for hectovolt
impl RefUnwindSafe for hectovolt
impl Send for hectovolt
impl Sync for hectovolt
impl Unpin for hectovolt
impl UnwindSafe for hectovolt
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