pub struct Temperature<S: TemperatureScale> { /* private fields */ }Expand description
A temperature value with its associated scale.
Implementations§
Source§impl<S: TemperatureScale> Temperature<S>
impl<S: TemperatureScale> Temperature<S>
Source§impl Temperature<Celsius>
impl Temperature<Celsius>
Sourcepub fn into_fahrenheit(self) -> Temperature<Fahrenheit>
pub fn into_fahrenheit(self) -> Temperature<Fahrenheit>
Convert celsius into fahrenheit
Trait Implementations§
Source§impl<S: TemperatureScale> Add<f32> for Temperature<S>
impl<S: TemperatureScale> Add<f32> for Temperature<S>
Source§impl<S: TemperatureScale> Add for Temperature<S>
impl<S: TemperatureScale> Add for Temperature<S>
Source§impl<S: TemperatureScale> Clone for Temperature<S>
impl<S: TemperatureScale> Clone for Temperature<S>
Source§impl<S: TemperatureScale> Debug for Temperature<S>
impl<S: TemperatureScale> Debug for Temperature<S>
Source§impl<S: TemperatureScale> Display for Temperature<S>
impl<S: TemperatureScale> Display for Temperature<S>
Source§impl<S: TemperatureScale> Div<f32> for Temperature<S>
impl<S: TemperatureScale> Div<f32> for Temperature<S>
Source§impl Into<Temperature<Celsius>> for f32
impl Into<Temperature<Celsius>> for f32
Source§fn into(self) -> Temperature<Celsius>
fn into(self) -> Temperature<Celsius>
Converts this type into the (usually inferred) input type.
Source§impl Into<Temperature<Celsius>> for i16
impl Into<Temperature<Celsius>> for i16
Source§fn into(self) -> Temperature<Celsius>
fn into(self) -> Temperature<Celsius>
Converts this type into the (usually inferred) input type.
Source§impl<S: TemperatureScale> Sub for Temperature<S>
impl<S: TemperatureScale> Sub for Temperature<S>
impl<S: TemperatureScale> Copy for Temperature<S>
Auto Trait Implementations§
impl<S> Freeze for Temperature<S>
impl<S> RefUnwindSafe for Temperature<S>where
S: RefUnwindSafe,
impl<S> Send for Temperature<S>
impl<S> Sync for Temperature<S>where
S: Sync,
impl<S> Unpin for Temperature<S>where
S: Unpin,
impl<S> UnwindSafe for Temperature<S>where
S: UnwindSafe,
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