pub struct Power(/* private fields */);Implementations§
Source§impl Power
impl Power
pub fn milliwatts(value: f64) -> Self
pub fn watts(value: f64) -> Self
pub fn kilowatts(value: f64) -> Self
pub fn from_dc_circuit(voltage: f64, current: f64) -> Self
pub fn from_ac_circuit(voltage: f64, current: f64, factor: f64) -> Self
pub const fn value(&self) -> f64
Trait Implementations§
Source§impl AsRef<Quantity<dyn Dimension<J = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, N = Z0, Th = Z0, I = Z0, M = PInt<UInt<UTerm, B1>>>, dyn Units<f64, thermodynamic_temperature = kelvin, electric_current = ampere, amount_of_substance = mole, length = meter, time = second, luminous_intensity = candela, mass = kilogram>, f64>> for Power
impl AsRef<Quantity<dyn Dimension<J = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, N = Z0, Th = Z0, I = Z0, M = PInt<UInt<UTerm, B1>>>, dyn Units<f64, thermodynamic_temperature = kelvin, electric_current = ampere, amount_of_substance = mole, length = meter, time = second, luminous_intensity = candela, mass = kilogram>, f64>> for Power
Source§impl<'de> Deserialize<'de> for Power
impl<'de> Deserialize<'de> for Power
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 From<Quantity<dyn Dimension<J = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, N = Z0, Th = Z0, I = Z0, M = PInt<UInt<UTerm, B1>>>, dyn Units<f64, thermodynamic_temperature = kelvin, electric_current = ampere, amount_of_substance = mole, length = meter, time = second, luminous_intensity = candela, mass = kilogram>, f64>> for Power
impl From<Quantity<dyn Dimension<J = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, N = Z0, Th = Z0, I = Z0, M = PInt<UInt<UTerm, B1>>>, dyn Units<f64, thermodynamic_temperature = kelvin, electric_current = ampere, amount_of_substance = mole, length = meter, time = second, luminous_intensity = candela, mass = kilogram>, f64>> for Power
Source§impl PartialOrd for Power
impl PartialOrd for Power
impl Copy for Power
impl StructuralPartialEq for Power
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl Sync for Power
impl Unpin for Power
impl UnsafeUnpin for Power
impl UnwindSafe for Power
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