pub struct Temperature(/* private fields */);Expand description
Temperature in Kelvin.
Implementations§
Source§impl Temperature
impl Temperature
Sourcepub const fn new(k: f64) -> Temperature
pub const fn new(k: f64) -> Temperature
Creates a new temperature from an f64 value in Kelvin.
Sourcepub const fn kelvin(k: f64) -> Temperature
pub const fn kelvin(k: f64) -> Temperature
Creates a new temperature from an f64 value in Kelvin.
Trait Implementations§
Source§impl Add for Temperature
impl Add for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
+ operator.Source§fn add(self, rhs: Temperature) -> <Temperature as Add>::Output
fn add(self, rhs: Temperature) -> <Temperature as Add>::Output
Performs the
+ operation. Read moreSource§impl AddAssign for Temperature
impl AddAssign for Temperature
Source§fn add_assign(&mut self, rhs: Temperature)
fn add_assign(&mut self, rhs: Temperature)
Performs the
+= operation. Read moreSource§impl ApproxEq for Temperature
impl ApproxEq for Temperature
Source§fn approx_eq(&self, rhs: &Temperature, atol: f64, rtol: f64) -> ApproxEqResults
fn approx_eq(&self, rhs: &Temperature, atol: f64, rtol: f64) -> ApproxEqResults
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 · 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 Display for Temperature
impl Display for Temperature
Source§impl Neg for Temperature
impl Neg for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
Source§impl PartialOrd for Temperature
impl PartialOrd for Temperature
Source§impl Sub for Temperature
impl Sub for Temperature
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
- operator.Source§fn sub(self, rhs: Temperature) -> <Temperature as Sub>::Output
fn sub(self, rhs: Temperature) -> <Temperature as Sub>::Output
Performs the
- operation. Read moreSource§impl SubAssign for Temperature
impl SubAssign for Temperature
Source§fn sub_assign(&mut self, rhs: Temperature)
fn sub_assign(&mut self, rhs: Temperature)
Performs the
-= operation. Read moreimpl Copy for Temperature
impl StructuralPartialEq 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