pub type Temperature = Qty<0, 0, 0, 0, 1, 0, 0>;Expand description
Absolute temperature. Kelvin only — see Temperature::celsius.
Aliased Type§
pub struct Temperature(/* private fields */);Implementations§
Source§impl Temperature
impl Temperature
Sourcepub fn kelvin(v: f64) -> Temperature
pub fn kelvin(v: f64) -> Temperature
Kelvin, which is what is stored.
Sourcepub fn celsius(v: f64) -> Temperature
pub fn celsius(v: f64) -> Temperature
Celsius is an offset scale, not a scaled one, which is why it gets a named constructor rather than a factor: 20 °C is 293.15 K, and a temperature difference of 20 K is a different thing entirely.
Sourcepub fn in_celsius(self) -> f64
pub fn in_celsius(self) -> f64
As degrees Celsius. Subtracts the offset; see Temperature::celsius.
Trait Implementations§
Source§impl Mul<Qty<2, 0, -2, 0, -1, 0, 0>> for Temperature
impl Mul<Qty<2, 0, -2, 0, -1, 0, 0>> for Temperature
Source§fn mul(self, rhs: SpecificHeat) -> LatentHeat
fn mul(self, rhs: SpecificHeat) -> LatentHeat
Performs the
* operation. Read more