pub struct Temperature { /* private fields */ }
Implementations§
Source§impl Temperature
impl Temperature
pub const fn new(value: f64, units: TemperatureUnits) -> Self
pub fn value(&self) -> f64
pub fn units(&self) -> TemperatureUnits
Source§impl Temperature
impl Temperature
pub fn new_celsius(value: f64) -> Temperature
pub fn new_fahrenheit(value: f64) -> Temperature
pub fn new_kelvin(value: f64) -> Temperature
pub fn new_rankine(value: f64) -> Temperature
pub fn as_celsius(&self) -> Temperature
pub fn as_kelvin(&self) -> Temperature
pub fn as_fahrenheit(&self) -> Temperature
pub fn as_rankine(&self) -> Temperature
Trait Implementations§
Source§impl<'a> Add<&Temperature> for &Temperature
impl<'a> Add<&Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &Temperature) -> Temperature
fn add(self, rhs: &Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<&Temperature> for &mut Temperature
impl<'a> Add<&Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &Temperature) -> Temperature
fn add(self, rhs: &Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<&Temperature> for Temperature
impl<'a> Add<&Temperature> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &Temperature) -> Temperature
fn add(self, rhs: &Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<&mut Temperature> for &Temperature
impl<'a> Add<&mut Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &mut Temperature) -> Temperature
fn add(self, rhs: &mut Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<&mut Temperature> for &mut Temperature
impl<'a> Add<&mut Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &mut Temperature) -> Temperature
fn add(self, rhs: &mut Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<&mut Temperature> for Temperature
impl<'a> Add<&mut Temperature> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &mut Temperature) -> Temperature
fn add(self, rhs: &mut Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<Temperature> for &Temperature
impl<'a> Add<Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Temperature) -> Temperature
fn add(self, rhs: Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add<Temperature> for &mut Temperature
impl<'a> Add<Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Temperature) -> Temperature
fn add(self, rhs: Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> Add for Temperature
impl<'a> Add for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Temperature) -> Temperature
fn add(self, rhs: Temperature) -> Temperature
Performs the
+
operation. Read moreSource§impl<'a> AddAssign<&Temperature> for &mut Temperature
impl<'a> AddAssign<&Temperature> for &mut Temperature
Source§fn add_assign(&mut self, rhs: &Temperature)
fn add_assign(&mut self, rhs: &Temperature)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&Temperature> for Temperature
impl<'a> AddAssign<&Temperature> for Temperature
Source§fn add_assign(&mut self, rhs: &Temperature)
fn add_assign(&mut self, rhs: &Temperature)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Temperature> for &mut Temperature
impl<'a> AddAssign<&mut Temperature> for &mut Temperature
Source§fn add_assign(&mut self, rhs: &mut Temperature)
fn add_assign(&mut self, rhs: &mut Temperature)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<&mut Temperature> for Temperature
impl<'a> AddAssign<&mut Temperature> for Temperature
Source§fn add_assign(&mut self, rhs: &mut Temperature)
fn add_assign(&mut self, rhs: &mut Temperature)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign<Temperature> for &mut Temperature
impl<'a> AddAssign<Temperature> for &mut Temperature
Source§fn add_assign(&mut self, rhs: Temperature)
fn add_assign(&mut self, rhs: Temperature)
Performs the
+=
operation. Read moreSource§impl<'a> AddAssign for Temperature
impl<'a> AddAssign for Temperature
Source§fn add_assign(&mut self, rhs: Temperature)
fn add_assign(&mut self, rhs: Temperature)
Performs the
+=
operation. Read moreSource§impl Clone for Temperature
impl Clone for Temperature
Source§fn clone(&self) -> Temperature
fn clone(&self) -> Temperature
Returns a copy of the value. Read more
1.0.0 · 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 Default for Temperature
impl Default for Temperature
Source§fn default() -> Temperature
fn default() -> Temperature
Returns the “default value” for a type. Read more
Source§impl<'a> Div<&Temperature> for &Temperature
impl<'a> Div<&Temperature> for &Temperature
Source§impl<'a> Div<&mut Temperature> for &mut Temperature
impl<'a> Div<&mut Temperature> for &mut Temperature
Source§impl<'a> Div<f64> for &Temperature
impl<'a> Div<f64> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
/
operator.Source§impl<'a> Div<f64> for &mut Temperature
impl<'a> Div<f64> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
/
operator.Source§impl<'a> Div<f64> for Temperature
impl<'a> Div<f64> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
/
operator.Source§impl<'a> Div for Temperature
impl<'a> Div for Temperature
Source§impl<'a> DivAssign<f64> for &mut Temperature
impl<'a> DivAssign<f64> for &mut Temperature
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<'a> DivAssign<f64> for Temperature
impl<'a> DivAssign<f64> for Temperature
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl<'a> Mul<&Temperature> for &Temperature
impl<'a> Mul<&Temperature> for &Temperature
Source§impl<'a> Mul<&Temperature> for f64
impl<'a> Mul<&Temperature> for f64
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul<&mut Temperature> for &mut Temperature
impl<'a> Mul<&mut Temperature> for &mut Temperature
Source§impl<'a> Mul<&mut Temperature> for f64
impl<'a> Mul<&mut Temperature> for f64
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul<Temperature> for f64
impl<'a> Mul<Temperature> for f64
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul<f64> for &Temperature
impl<'a> Mul<f64> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul<f64> for &mut Temperature
impl<'a> Mul<f64> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul<f64> for Temperature
impl<'a> Mul<f64> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
*
operator.Source§impl<'a> Mul for Temperature
impl<'a> Mul for Temperature
Source§impl<'a> MulAssign<f64> for &mut Temperature
impl<'a> MulAssign<f64> for &mut Temperature
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl<'a> MulAssign<f64> for Temperature
impl<'a> MulAssign<f64> for Temperature
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl Ord for Temperature
impl Ord for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
Source§impl PartialOrd for Temperature
impl PartialOrd for Temperature
Source§impl<'a> Sub<&Temperature> for &Temperature
impl<'a> Sub<&Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &Temperature) -> Temperature
fn sub(self, rhs: &Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<&Temperature> for &mut Temperature
impl<'a> Sub<&Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &Temperature) -> Temperature
fn sub(self, rhs: &Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<&Temperature> for Temperature
impl<'a> Sub<&Temperature> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &Temperature) -> Temperature
fn sub(self, rhs: &Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<&mut Temperature> for &Temperature
impl<'a> Sub<&mut Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &mut Temperature) -> Temperature
fn sub(self, rhs: &mut Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<&mut Temperature> for &mut Temperature
impl<'a> Sub<&mut Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &mut Temperature) -> Temperature
fn sub(self, rhs: &mut Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<&mut Temperature> for Temperature
impl<'a> Sub<&mut Temperature> for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &mut Temperature) -> Temperature
fn sub(self, rhs: &mut Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<Temperature> for &Temperature
impl<'a> Sub<Temperature> for &Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Temperature) -> Temperature
fn sub(self, rhs: Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub<Temperature> for &mut Temperature
impl<'a> Sub<Temperature> for &mut Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Temperature) -> Temperature
fn sub(self, rhs: Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> Sub for Temperature
impl<'a> Sub for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Temperature) -> Temperature
fn sub(self, rhs: Temperature) -> Temperature
Performs the
-
operation. Read moreSource§impl<'a> SubAssign<&Temperature> for &mut Temperature
impl<'a> SubAssign<&Temperature> for &mut Temperature
Source§fn sub_assign(&mut self, rhs: &Temperature)
fn sub_assign(&mut self, rhs: &Temperature)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&Temperature> for Temperature
impl<'a> SubAssign<&Temperature> for Temperature
Source§fn sub_assign(&mut self, rhs: &Temperature)
fn sub_assign(&mut self, rhs: &Temperature)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Temperature> for &mut Temperature
impl<'a> SubAssign<&mut Temperature> for &mut Temperature
Source§fn sub_assign(&mut self, rhs: &mut Temperature)
fn sub_assign(&mut self, rhs: &mut Temperature)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<&mut Temperature> for Temperature
impl<'a> SubAssign<&mut Temperature> for Temperature
Source§fn sub_assign(&mut self, rhs: &mut Temperature)
fn sub_assign(&mut self, rhs: &mut Temperature)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign<Temperature> for &mut Temperature
impl<'a> SubAssign<Temperature> for &mut Temperature
Source§fn sub_assign(&mut self, rhs: Temperature)
fn sub_assign(&mut self, rhs: Temperature)
Performs the
-=
operation. Read moreSource§impl<'a> SubAssign for Temperature
impl<'a> SubAssign for Temperature
Source§fn sub_assign(&mut self, rhs: Temperature)
fn sub_assign(&mut self, rhs: Temperature)
Performs the
-=
operation. Read moreSource§impl Unit<TemperatureUnits> for &Temperature
impl Unit<TemperatureUnits> for &Temperature
type Output = Temperature
fn as_unit(&self, units: TemperatureUnits) -> Temperaturewhere
Self: Sized,
Source§impl Unit<TemperatureUnits> for &mut Temperature
impl Unit<TemperatureUnits> for &mut Temperature
type Output = Temperature
fn as_unit(&self, units: TemperatureUnits) -> Temperaturewhere
Self: Sized,
Source§impl Unit<TemperatureUnits> for Temperature
impl Unit<TemperatureUnits> for Temperature
type Output = Temperature
fn as_unit(&self, units: TemperatureUnits) -> Temperaturewhere
Self: Sized,
Source§impl UnitStruct<TemperatureUnits> for &Temperature
impl UnitStruct<TemperatureUnits> for &Temperature
type Output = Temperature
Source§fn new(value: f64, units: TemperatureUnits) -> Temperature
fn new(value: f64, units: TemperatureUnits) -> Temperature
Creates a new type
Source§fn units(&self) -> TemperatureUnits
fn units(&self) -> TemperatureUnits
Returns the unit type of this struct
Source§impl UnitStruct<TemperatureUnits> for &mut Temperature
impl UnitStruct<TemperatureUnits> for &mut Temperature
type Output = Temperature
Source§fn new(value: f64, units: TemperatureUnits) -> Temperature
fn new(value: f64, units: TemperatureUnits) -> Temperature
Creates a new type
Source§fn units(&self) -> TemperatureUnits
fn units(&self) -> TemperatureUnits
Returns the unit type of this struct
Source§impl UnitStruct<TemperatureUnits> for Temperature
impl UnitStruct<TemperatureUnits> for Temperature
type Output = Temperature
Source§fn new(value: f64, units: TemperatureUnits) -> Temperature
fn new(value: f64, units: TemperatureUnits) -> Temperature
Creates a new type
Source§fn units(&self) -> TemperatureUnits
fn units(&self) -> TemperatureUnits
Returns the unit type of this struct
impl Copy for Temperature
impl Eq 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 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