pub struct Temperature;Expand description
A temperature.
Implementations§
Source§impl Temperature
impl Temperature
Sourcepub const fn kelvin(value: TensorRank0) -> Quantity<Temperature>
pub const fn kelvin(value: TensorRank0) -> Quantity<Temperature>
A quantity of kelvin.
Source§impl Temperature
impl Temperature
Sourcepub const fn celsius(value: TensorRank0) -> Quantity<Temperature>
pub const fn celsius(value: TensorRank0) -> Quantity<Temperature>
A quantity of degrees celsius.
A celsius is a kelvin offset rather than scaled, so this names a
temperature and not a difference between two. A difference is the same
number of either, and is the kelvin it already is.
Sourcepub const fn fahrenheit(value: TensorRank0) -> Quantity<Temperature>
pub const fn fahrenheit(value: TensorRank0) -> Quantity<Temperature>
A quantity of degrees fahrenheit.
Offset as well as scaled, so the same caution applies as for
celsius.
Trait Implementations§
Source§impl Clone for Temperature
impl Clone for Temperature
Source§fn clone(&self) -> Temperature
fn clone(&self) -> Temperature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Temperature
impl Debug for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
Source§fn eq(&self, other: &Temperature) -> bool
fn eq(&self, other: &Temperature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl UnitDiv<Dimensionless> for Temperature
impl UnitDiv<Dimensionless> for Temperature
Source§type Output = Temperature
type Output = Temperature
The unit of the quotient.
Source§impl UnitDiv<Temperature> for Dimensionless
impl UnitDiv<Temperature> for Dimensionless
Source§type Output = ReciprocalTemperature
type Output = ReciprocalTemperature
The unit of the quotient.
Source§impl UnitDiv<Temperature> for MolarEnergy
impl UnitDiv<Temperature> for MolarEnergy
Source§type Output = MolarEntropy
type Output = MolarEntropy
The unit of the quotient.
Source§impl UnitDiv<Temperature> for Power
impl UnitDiv<Temperature> for Power
Source§type Output = PowerPerTemperature
type Output = PowerPerTemperature
The unit of the quotient.
Source§impl UnitDiv<Temperature> for PowerTemperature
impl UnitDiv<Temperature> for PowerTemperature
Source§impl UnitDiv<Temperature> for Stress
impl UnitDiv<Temperature> for Stress
Source§type Output = StressPerTemperature
type Output = StressPerTemperature
The unit of the quotient.
Source§impl UnitDiv<Temperature> for Temperature
impl UnitDiv<Temperature> for Temperature
Source§type Output = Dimensionless
type Output = Dimensionless
The unit of the quotient.
Source§impl UnitDiv<Temperature> for TemperaturePerLength
impl UnitDiv<Temperature> for TemperaturePerLength
Source§type Output = ReciprocalLength
type Output = ReciprocalLength
The unit of the quotient.
Source§impl UnitHalves for Temperature
impl UnitHalves for Temperature
Source§type First = Temperature
type First = Temperature
The unit the first half takes.
Source§type Second = Temperature
type Second = Temperature
The unit the second half takes.
Source§impl UnitInv for Temperature
impl UnitInv for Temperature
Source§type Output = ReciprocalTemperature
type Output = ReciprocalTemperature
The unit of the inverse.
Source§impl UnitMul<Dimensionless> for Temperature
impl UnitMul<Dimensionless> for Temperature
Source§type Output = Temperature
type Output = Temperature
The unit of the product.
Source§impl UnitMul<MolarEntropy> for Temperature
impl UnitMul<MolarEntropy> for Temperature
Source§type Output = MolarEnergy
type Output = MolarEnergy
The unit of the product.
Source§impl UnitMul<PowerPerTemperature> for Temperature
impl UnitMul<PowerPerTemperature> for Temperature
Source§impl UnitMul<ReciprocalLength> for Temperature
impl UnitMul<ReciprocalLength> for Temperature
Source§type Output = TemperaturePerLength
type Output = TemperaturePerLength
The unit of the product.
Source§impl UnitMul<ReciprocalTemperature> for Temperature
impl UnitMul<ReciprocalTemperature> for Temperature
Source§type Output = Dimensionless
type Output = Dimensionless
The unit of the product.
Source§impl UnitMul<Temperature> for Dimensionless
impl UnitMul<Temperature> for Dimensionless
Source§type Output = Temperature
type Output = Temperature
The unit of the product.
Source§impl UnitMul<Temperature> for MolarEntropy
impl UnitMul<Temperature> for MolarEntropy
Source§type Output = MolarEnergy
type Output = MolarEnergy
The unit of the product.
Source§impl UnitMul<Temperature> for Power
impl UnitMul<Temperature> for Power
Source§type Output = PowerTemperature
type Output = PowerTemperature
The unit of the product.
Source§impl UnitMul<Temperature> for PowerPerTemperature
impl UnitMul<Temperature> for PowerPerTemperature
Source§impl UnitMul<Temperature> for ReciprocalLength
impl UnitMul<Temperature> for ReciprocalLength
Source§type Output = TemperaturePerLength
type Output = TemperaturePerLength
The unit of the product.
Source§impl UnitMul<Temperature> for ReciprocalTemperature
impl UnitMul<Temperature> for ReciprocalTemperature
Source§type Output = Dimensionless
type Output = Dimensionless
The unit of the product.
Source§impl UnitMul<Temperature> for StressPerTemperature
impl UnitMul<Temperature> for StressPerTemperature
Source§impl UnitSum for Temperature
impl UnitSum for Temperature
Source§type Output = Temperature
type Output = Temperature
The unit of the sum.
impl Copy for Temperature
impl Eq for Temperature
impl StructuralPartialEq for Temperature
impl Unit for Temperature
Auto Trait Implementations§
impl Freeze for Temperature
impl RefUnwindSafe for Temperature
impl Send for Temperature
impl Sync for Temperature
impl Unpin for Temperature
impl UnsafeUnpin for Temperature
impl UnwindSafe for Temperature
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