pub enum TemperatureUnit {
DegreeCelsius,
DegreeFahrenheit,
Kelvin,
}Expand description
Unit of quantity Temperature.
Variants§
Trait Implementations§
Source§impl Clone for TemperatureUnit
impl Clone for TemperatureUnit
Source§fn clone(&self) -> TemperatureUnit
fn clone(&self) -> TemperatureUnit
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 TemperatureUnit
impl Debug for TemperatureUnit
Source§impl Display for TemperatureUnit
impl Display for TemperatureUnit
Source§impl Mul<TemperatureUnit> for AmountT
impl Mul<TemperatureUnit> for AmountT
Source§type Output = Temperature
type Output = Temperature
The resulting type after applying the
* operator.Source§impl Mul<f64> for TemperatureUnit
impl Mul<f64> for TemperatureUnit
Source§impl PartialEq for TemperatureUnit
impl PartialEq for TemperatureUnit
Source§impl Unit for TemperatureUnit
impl Unit for TemperatureUnit
Source§type QuantityType = Temperature
type QuantityType = Temperature
Associated type of quantity
Source§fn si_prefix(&self) -> Option<SIPrefix>
fn si_prefix(&self) -> Option<SIPrefix>
Returns the SI prefix of
self, or None is self is not a SI unit.Source§fn from_symbol(symbol: &str) -> Option<Self>
fn from_symbol(symbol: &str) -> Option<Self>
Returns
Some(unit) where unit.symbol() == symbol, or None if
there is no such unit.Source§fn as_qty(&self) -> Self::QuantityType
fn as_qty(&self) -> Self::QuantityType
Returns
1 * selfimpl Copy for TemperatureUnit
impl Eq for TemperatureUnit
impl StructuralPartialEq for TemperatureUnit
Auto Trait Implementations§
impl Freeze for TemperatureUnit
impl RefUnwindSafe for TemperatureUnit
impl Send for TemperatureUnit
impl Sync for TemperatureUnit
impl Unpin for TemperatureUnit
impl UnsafeUnpin for TemperatureUnit
impl UnwindSafe for TemperatureUnit
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