pub struct TemperatureInterval { /* private fields */ }Expand description
Temperature interval (base UnitDefinition kelvin, K).
Scalar storage of a quantity (f64 and TemperatureIntervalUnit).
Implementations§
Source§impl TemperatureInterval
impl TemperatureInterval
Sourcepub fn new(value: f64, unit: TemperatureIntervalUnit) -> Self
pub fn new(value: f64, unit: TemperatureIntervalUnit) -> Self
Create a new TemperatureIntervalUnit.
Sourcepub fn yottakelvin(value: f64) -> Self
pub fn yottakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::yottakelvin.
Sourcepub fn zettakelvin(value: f64) -> Self
pub fn zettakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::zettakelvin.
Sourcepub fn exakelvin(value: f64) -> Self
pub fn exakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::exakelvin.
Sourcepub fn petakelvin(value: f64) -> Self
pub fn petakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::petakelvin.
Sourcepub fn terakelvin(value: f64) -> Self
pub fn terakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::terakelvin.
Sourcepub fn gigakelvin(value: f64) -> Self
pub fn gigakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::gigakelvin.
Sourcepub fn megakelvin(value: f64) -> Self
pub fn megakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::megakelvin.
Sourcepub fn kilokelvin(value: f64) -> Self
pub fn kilokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::kilokelvin.
Sourcepub fn hectokelvin(value: f64) -> Self
pub fn hectokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::hectokelvin.
Sourcepub fn decakelvin(value: f64) -> Self
pub fn decakelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::decakelvin.
Sourcepub fn kelvin(value: f64) -> Self
pub fn kelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::kelvin.
Sourcepub fn decikelvin(value: f64) -> Self
pub fn decikelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::decikelvin.
Sourcepub fn centikelvin(value: f64) -> Self
pub fn centikelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::centikelvin.
Sourcepub fn millikelvin(value: f64) -> Self
pub fn millikelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::millikelvin.
Sourcepub fn microkelvin(value: f64) -> Self
pub fn microkelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::microkelvin.
Sourcepub fn nanokelvin(value: f64) -> Self
pub fn nanokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::nanokelvin.
Sourcepub fn picokelvin(value: f64) -> Self
pub fn picokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::picokelvin.
Sourcepub fn femtokelvin(value: f64) -> Self
pub fn femtokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::femtokelvin.
Sourcepub fn attokelvin(value: f64) -> Self
pub fn attokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::attokelvin.
Sourcepub fn zeptokelvin(value: f64) -> Self
pub fn zeptokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::zeptokelvin.
Sourcepub fn yoctokelvin(value: f64) -> Self
pub fn yoctokelvin(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::yoctokelvin.
Sourcepub fn degree_celsius(value: f64) -> Self
pub fn degree_celsius(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::degree_celsius.
Sourcepub fn degree_fahrenheit(value: f64) -> Self
pub fn degree_fahrenheit(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::degree_fahrenheit.
Sourcepub fn degree_rankine(value: f64) -> Self
pub fn degree_rankine(value: f64) -> Self
Create a new TemperatureInterval with units of TemperatureIntervalUnit::degree_rankine.
Sourcepub fn value(&self) -> f64
pub fn value(&self) -> f64
Retrieve the value associated with this TemperatureInterval.
Sourcepub fn value_mut(&mut self) -> &mut f64
pub fn value_mut(&mut self) -> &mut f64
Retrieve the mutable value associated with this TemperatureInterval.
Sourcepub fn definition(&self) -> UnitDefinition
pub fn definition(&self) -> UnitDefinition
Retrieve the UnitDefinition associated with this TemperatureInterval.
Sourcepub fn to_yottakelvin(&self) -> Self
pub fn to_yottakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::yottakelvin.
Sourcepub fn to_zettakelvin(&self) -> Self
pub fn to_zettakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::zettakelvin.
Sourcepub fn to_exakelvin(&self) -> Self
pub fn to_exakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::exakelvin.
Sourcepub fn to_petakelvin(&self) -> Self
pub fn to_petakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::petakelvin.
Sourcepub fn to_terakelvin(&self) -> Self
pub fn to_terakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::terakelvin.
Sourcepub fn to_gigakelvin(&self) -> Self
pub fn to_gigakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::gigakelvin.
Sourcepub fn to_megakelvin(&self) -> Self
pub fn to_megakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::megakelvin.
Sourcepub fn to_kilokelvin(&self) -> Self
pub fn to_kilokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::kilokelvin.
Sourcepub fn to_hectokelvin(&self) -> Self
pub fn to_hectokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::hectokelvin.
Sourcepub fn to_decakelvin(&self) -> Self
pub fn to_decakelvin(&self) -> Self
Convert to TemperatureIntervalUnit::decakelvin.
Sourcepub fn to_kelvin(&self) -> Self
pub fn to_kelvin(&self) -> Self
Convert to TemperatureIntervalUnit::kelvin.
Sourcepub fn to_decikelvin(&self) -> Self
pub fn to_decikelvin(&self) -> Self
Convert to TemperatureIntervalUnit::decikelvin.
Sourcepub fn to_centikelvin(&self) -> Self
pub fn to_centikelvin(&self) -> Self
Convert to TemperatureIntervalUnit::centikelvin.
Sourcepub fn to_millikelvin(&self) -> Self
pub fn to_millikelvin(&self) -> Self
Convert to TemperatureIntervalUnit::millikelvin.
Sourcepub fn to_microkelvin(&self) -> Self
pub fn to_microkelvin(&self) -> Self
Convert to TemperatureIntervalUnit::microkelvin.
Sourcepub fn to_nanokelvin(&self) -> Self
pub fn to_nanokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::nanokelvin.
Sourcepub fn to_picokelvin(&self) -> Self
pub fn to_picokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::picokelvin.
Sourcepub fn to_femtokelvin(&self) -> Self
pub fn to_femtokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::femtokelvin.
Sourcepub fn to_attokelvin(&self) -> Self
pub fn to_attokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::attokelvin.
Sourcepub fn to_zeptokelvin(&self) -> Self
pub fn to_zeptokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::zeptokelvin.
Sourcepub fn to_yoctokelvin(&self) -> Self
pub fn to_yoctokelvin(&self) -> Self
Convert to TemperatureIntervalUnit::yoctokelvin.
Sourcepub fn to_degree_celsius(&self) -> Self
pub fn to_degree_celsius(&self) -> Self
Convert to TemperatureIntervalUnit::degree_celsius.
Sourcepub fn to_degree_fahrenheit(&self) -> Self
pub fn to_degree_fahrenheit(&self) -> Self
Convert to TemperatureIntervalUnit::degree_fahrenheit.
Sourcepub fn to_degree_rankine(&self) -> Self
pub fn to_degree_rankine(&self) -> Self
Convert to TemperatureIntervalUnit::degree_rankine.
Trait Implementations§
Source§impl Add<Quantity> for TemperatureInterval
impl Add<Quantity> for TemperatureInterval
Source§impl Add for TemperatureInterval
impl Add for TemperatureInterval
Source§type Output = TemperatureInterval
type Output = TemperatureInterval
+ operator.Source§fn add(self, rhs: TemperatureInterval) -> Self
fn add(self, rhs: TemperatureInterval) -> Self
+ operation. Read moreSource§impl AddAssign<Quantity> for TemperatureInterval
impl AddAssign<Quantity> for TemperatureInterval
Source§fn add_assign(&mut self, rhs: Quantity)
fn add_assign(&mut self, rhs: Quantity)
+= operation. Read moreSource§impl AddAssign for TemperatureInterval
impl AddAssign for TemperatureInterval
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl Clone for TemperatureInterval
impl Clone for TemperatureInterval
Source§fn clone(&self) -> TemperatureInterval
fn clone(&self) -> TemperatureInterval
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TemperatureInterval
impl Debug for TemperatureInterval
Source§impl Default for TemperatureInterval
impl Default for TemperatureInterval
Source§fn default() -> TemperatureInterval
fn default() -> TemperatureInterval
Source§impl<T: IsScalarQuantity> Div<T> for TemperatureInterval
impl<T: IsScalarQuantity> Div<T> for TemperatureInterval
Source§impl Div<f64> for TemperatureInterval
impl Div<f64> for TemperatureInterval
Source§impl DivAssign<f64> for TemperatureInterval
impl DivAssign<f64> for TemperatureInterval
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
/= operation. Read moreSource§impl FixedQuantity<TemperatureIntervalUnit> for TemperatureInterval
impl FixedQuantity<TemperatureIntervalUnit> for TemperatureInterval
Source§fn unit(&self) -> TemperatureIntervalUnit
fn unit(&self) -> TemperatureIntervalUnit
Source§fn convert(&self, unit: TemperatureIntervalUnit) -> Self
fn convert(&self, unit: TemperatureIntervalUnit) -> Self
Source§fn convert_mut(&mut self, unit: TemperatureIntervalUnit)
fn convert_mut(&mut self, unit: TemperatureIntervalUnit)
Source§fn unit_mut(&mut self) -> &mut TemperatureIntervalUnit
fn unit_mut(&mut self) -> &mut TemperatureIntervalUnit
Source§fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
Source§impl From<&TemperatureInterval> for Units
impl From<&TemperatureInterval> for Units
Source§fn from(value: &TemperatureInterval) -> Self
fn from(value: &TemperatureInterval) -> Self
Source§impl From<Quantity> for TemperatureInterval
impl From<Quantity> for TemperatureInterval
Source§fn from(quantity: Quantity) -> TemperatureInterval
fn from(quantity: Quantity) -> TemperatureInterval
Source§impl From<TemperatureInterval> for Quantity
impl From<TemperatureInterval> for Quantity
Source§fn from(quantity: TemperatureInterval) -> Self
fn from(quantity: TemperatureInterval) -> Self
Source§impl From<TemperatureInterval> for UnitDefinition
impl From<TemperatureInterval> for UnitDefinition
Source§fn from(value: TemperatureInterval) -> Self
fn from(value: TemperatureInterval) -> Self
Source§impl From<TemperatureInterval> for Units
impl From<TemperatureInterval> for Units
Source§fn from(value: TemperatureInterval) -> Self
fn from(value: TemperatureInterval) -> Self
Source§impl<T: IsScalarQuantity> Mul<T> for TemperatureInterval
impl<T: IsScalarQuantity> Mul<T> for TemperatureInterval
Source§impl Mul<f64> for TemperatureInterval
impl Mul<f64> for TemperatureInterval
Source§impl MulAssign<f64> for TemperatureInterval
impl MulAssign<f64> for TemperatureInterval
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
*= operation. Read moreSource§impl PartialEq<Quantity> for TemperatureInterval
impl PartialEq<Quantity> for TemperatureInterval
Source§impl PartialEq<TemperatureInterval> for Quantity
impl PartialEq<TemperatureInterval> for Quantity
Source§impl PartialEq for TemperatureInterval
impl PartialEq for TemperatureInterval
Source§impl PartialOrd for TemperatureInterval
impl PartialOrd for TemperatureInterval
Source§impl Sub<Quantity> for TemperatureInterval
impl Sub<Quantity> for TemperatureInterval
Source§impl Sub for TemperatureInterval
impl Sub for TemperatureInterval
Source§type Output = TemperatureInterval
type Output = TemperatureInterval
- operator.Source§fn sub(self, rhs: TemperatureInterval) -> Self
fn sub(self, rhs: TemperatureInterval) -> Self
- operation. Read moreSource§impl SubAssign<Quantity> for TemperatureInterval
impl SubAssign<Quantity> for TemperatureInterval
Source§fn sub_assign(&mut self, rhs: Quantity)
fn sub_assign(&mut self, rhs: Quantity)
-= operation. Read moreSource§impl SubAssign for TemperatureInterval
impl SubAssign for TemperatureInterval
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read more