pub struct Power {
pub m: Magnitude,
}alloc only.Fields§
§m: MagnitudeImplementations§
Source§impl Power
Formulas
impl Power
Formulas
Sourcepub fn from_energy_time(e: Energy, t: Time) -> Self
pub fn from_energy_time(e: Energy, t: Time) -> Self
Sourcepub fn from_time_energy(t: Time, e: Energy) -> Self
pub fn from_time_energy(t: Time, e: Energy) -> Self
(Alias of from_energy_time).
Source§impl Power
§SI prefixes constructors: in_* & converters as_*
The Power quantity is internally stored in watts (W).
impl Power
§SI prefixes constructors: in_* & converters as_*
The Power quantity is internally stored in watts (W).
Sourcepub fn in_quettawatts(m: Magnitude) -> Self
pub fn in_quettawatts(m: Magnitude) -> Self
New Power in quettawatts (QW) (10³⁰ W).
Sourcepub fn as_quettawatts(&self) -> Magnitude
pub fn as_quettawatts(&self) -> Magnitude
Returns Power as quettawatts (QW) (10³⁰ W).
Sourcepub fn in_ronnawatts(m: Magnitude) -> Self
pub fn in_ronnawatts(m: Magnitude) -> Self
New Power in ronnawatts (RW) (10²⁷ W).
Sourcepub fn as_ronnawatts(&self) -> Magnitude
pub fn as_ronnawatts(&self) -> Magnitude
Returns Power as ronnawatts (RW) (10²⁷ W).
Sourcepub fn in_yottawatts(m: Magnitude) -> Self
pub fn in_yottawatts(m: Magnitude) -> Self
New Power in yottawatts (YW) (10²⁴ W).
Sourcepub fn as_yottawatts(&self) -> Magnitude
pub fn as_yottawatts(&self) -> Magnitude
Returns Power as yottawatts (YW) (10²⁴ W).
Sourcepub fn in_zettawatts(m: Magnitude) -> Self
pub fn in_zettawatts(m: Magnitude) -> Self
New Power in zettawatts (ZW) (10²¹ W).
Sourcepub fn as_zettawatts(&self) -> Magnitude
pub fn as_zettawatts(&self) -> Magnitude
Returns Power as zettawatts (ZW) (10²¹ W).
Sourcepub fn in_exawatts(m: Magnitude) -> Self
pub fn in_exawatts(m: Magnitude) -> Self
New Power in exawatts (EW) (10¹⁸ W).
Sourcepub fn as_exawatts(&self) -> Magnitude
pub fn as_exawatts(&self) -> Magnitude
Returns Power as exawatts (EW) (10¹⁸ W).
Sourcepub fn in_petawatts(m: Magnitude) -> Self
pub fn in_petawatts(m: Magnitude) -> Self
New Power in petawatts (PW) (10¹⁵ W).
Sourcepub fn as_petawatts(&self) -> Magnitude
pub fn as_petawatts(&self) -> Magnitude
Returns Power as petawatts (PW) (10¹⁵ W).
Sourcepub fn in_terawatts(m: Magnitude) -> Self
pub fn in_terawatts(m: Magnitude) -> Self
New Power in terawatts (TW) (10¹² W).
Sourcepub fn as_terawatts(&self) -> Magnitude
pub fn as_terawatts(&self) -> Magnitude
Returns Power as terawatts (TW) (10¹² W).
Sourcepub fn in_gigawatts(m: Magnitude) -> Self
pub fn in_gigawatts(m: Magnitude) -> Self
New Power in gigawatts (GW) (10⁹ W).
Sourcepub fn as_gigawatts(&self) -> Magnitude
pub fn as_gigawatts(&self) -> Magnitude
Returns Power as gigawatts (GW) (10⁹ W).
Sourcepub fn in_megawatts(m: Magnitude) -> Self
pub fn in_megawatts(m: Magnitude) -> Self
New Power in megawatts (MW) (10⁶ W).
Sourcepub fn as_megawatts(&self) -> Magnitude
pub fn as_megawatts(&self) -> Magnitude
Returns Power as megawatts (MW) (10⁶ W).
Sourcepub fn in_kilowatts(m: Magnitude) -> Self
pub fn in_kilowatts(m: Magnitude) -> Self
New Power in kilowatts (kW) (10³ W).
Sourcepub fn as_kilowatts(&self) -> Magnitude
pub fn as_kilowatts(&self) -> Magnitude
Returns Power as kilowatts (kW) (10³ W).
Sourcepub fn in_hectowatts(m: Magnitude) -> Self
pub fn in_hectowatts(m: Magnitude) -> Self
New Power in hectowatts (hW) (10² W).
Sourcepub fn as_hectowatts(&self) -> Magnitude
pub fn as_hectowatts(&self) -> Magnitude
Returns Power as hectowatts (hW) (10² W).
Sourcepub fn in_dekawatts(m: Magnitude) -> Self
pub fn in_dekawatts(m: Magnitude) -> Self
New Power in dekawatts (daW) (10¹ W).
Sourcepub fn as_dekawatts(&self) -> Magnitude
pub fn as_dekawatts(&self) -> Magnitude
Returns Power as dekawatts (daW) (10¹ W).
Sourcepub fn in_deciwatts(m: Magnitude) -> Self
pub fn in_deciwatts(m: Magnitude) -> Self
New Power in deciwatts (dW) (10⁻¹ W).
Sourcepub fn as_deciwatts(&self) -> Magnitude
pub fn as_deciwatts(&self) -> Magnitude
Returns Power as deciwatts (dW) (10⁻¹ W).
Sourcepub fn in_centiwatts(m: Magnitude) -> Self
pub fn in_centiwatts(m: Magnitude) -> Self
New Power in centiwatts (cW) (10⁻² W).
Sourcepub fn as_centiwatts(&self) -> Magnitude
pub fn as_centiwatts(&self) -> Magnitude
Returns Power as centiwatts (cW) (10⁻² W).
Sourcepub fn in_milliwatts(m: Magnitude) -> Self
pub fn in_milliwatts(m: Magnitude) -> Self
New Power in milliwatts (mW) (10⁻³ W).
Sourcepub fn as_milliwatts(&self) -> Magnitude
pub fn as_milliwatts(&self) -> Magnitude
Returns Power as milliwatts (mW) (10⁻³ W).
Sourcepub fn in_microwatts(m: Magnitude) -> Self
pub fn in_microwatts(m: Magnitude) -> Self
New Power in microwatts (uW) (10⁻⁶ W).
Sourcepub fn as_microwatts(&self) -> Magnitude
pub fn as_microwatts(&self) -> Magnitude
Returns Power as microwatts (uW) (10⁻⁶ W).
Sourcepub fn in_nanowatts(m: Magnitude) -> Self
pub fn in_nanowatts(m: Magnitude) -> Self
New Power in nanowatts (nW) (10⁻⁹ W).
Sourcepub fn as_nanowatts(&self) -> Magnitude
pub fn as_nanowatts(&self) -> Magnitude
Returns Power as nanowatts (nW) (10⁻⁹ W).
Sourcepub fn in_picowatts(m: Magnitude) -> Self
pub fn in_picowatts(m: Magnitude) -> Self
New Power in picowatts (pW) (10⁻¹² W).
Sourcepub fn as_picowatts(&self) -> Magnitude
pub fn as_picowatts(&self) -> Magnitude
Returns Power as picowatts (pW) (10⁻¹² W).
Sourcepub fn in_femtowatts(m: Magnitude) -> Self
pub fn in_femtowatts(m: Magnitude) -> Self
New Power in femtowatts (fW) (10⁻¹⁵ W).
Sourcepub fn as_femtowatts(&self) -> Magnitude
pub fn as_femtowatts(&self) -> Magnitude
Returns Power as femtowatts (fW) (10⁻¹⁵ W).
Sourcepub fn in_attowatts(m: Magnitude) -> Self
pub fn in_attowatts(m: Magnitude) -> Self
New Power in attowatts (aW) (10⁻¹⁸ W).
Sourcepub fn as_attowatts(&self) -> Magnitude
pub fn as_attowatts(&self) -> Magnitude
Returns Power as attowatts (aW) (10⁻¹⁸ W).
Sourcepub fn in_zeptowatts(m: Magnitude) -> Self
pub fn in_zeptowatts(m: Magnitude) -> Self
New Power in zeptowatts (zW) (10⁻²¹ W).
Sourcepub fn as_zeptowatts(&self) -> Magnitude
pub fn as_zeptowatts(&self) -> Magnitude
Returns Power as zeptowatts (zW) (10⁻²¹ W).
Sourcepub fn in_yoctowatts(m: Magnitude) -> Self
pub fn in_yoctowatts(m: Magnitude) -> Self
New Power in yoctowatts (yW) (10⁻²⁴ W).
Sourcepub fn as_yoctowatts(&self) -> Magnitude
pub fn as_yoctowatts(&self) -> Magnitude
Returns Power as yoctowatts (yW) (10⁻²⁴ W).
Sourcepub fn in_rontowatts(m: Magnitude) -> Self
pub fn in_rontowatts(m: Magnitude) -> Self
New Power in rontowatts (rW) (10⁻²⁷ W).
Sourcepub fn as_rontowatts(&self) -> Magnitude
pub fn as_rontowatts(&self) -> Magnitude
Returns Power as rontowatts (rW) (10⁻²⁷ W).
Sourcepub fn in_quectowatts(m: Magnitude) -> Self
pub fn in_quectowatts(m: Magnitude) -> Self
New Power in quectowatts (qW) (10⁻³⁰ W).
Sourcepub fn as_quectowatts(&self) -> Magnitude
pub fn as_quectowatts(&self) -> Magnitude
Returns Power as quectowatts (qW) (10⁻³⁰ W).