[−][src]Struct macsmc::Fahrenheit
Temperature in Fahrenheit scale. To convert from Celsius to Fahrenheit:
let celsius = Celsius(42.0); let fahrenheit = Fahrenheit::from(celsius); assert_eq!(fahrenheit, Fahrenheit(107.6)); assert_eq!(*fahrenheit, 107.6);
Trait Implementations
impl Clone for Fahrenheit
[src]
fn clone(&self) -> Fahrenheit
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Fahrenheit
[src]
impl Debug for Fahrenheit
[src]
impl Deref for Fahrenheit
[src]
impl From<Celsius> for Fahrenheit
[src]
impl PartialEq<Fahrenheit> for Fahrenheit
[src]
fn eq(&self, other: &Fahrenheit) -> bool
[src]
fn ne(&self, other: &Fahrenheit) -> bool
[src]
impl PartialOrd<Fahrenheit> for Fahrenheit
[src]
fn partial_cmp(&self, other: &Fahrenheit) -> Option<Ordering>
[src]
fn lt(&self, other: &Fahrenheit) -> bool
[src]
fn le(&self, other: &Fahrenheit) -> bool
[src]
fn gt(&self, other: &Fahrenheit) -> bool
[src]
fn ge(&self, other: &Fahrenheit) -> bool
[src]
impl StructuralPartialEq for Fahrenheit
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fahrenheit
impl Send for Fahrenheit
impl Sync for Fahrenheit
impl Unpin for Fahrenheit
impl UnwindSafe for Fahrenheit
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,