pub struct Fahrenheit(/* private fields */);Expand description
Temperature in degrees Fahrenheit as used by APRS weather reports.
Per APRS 1.0.1 §12.4, weather t fields are 3 digits optionally with
a leading minus, giving the range -99 to 999. This newtype enforces
that range and rejects out-of-spec values.
Implementations§
Source§impl Fahrenheit
impl Fahrenheit
Trait Implementations§
Source§impl Clone for Fahrenheit
impl Clone for Fahrenheit
Source§fn clone(&self) -> Fahrenheit
fn clone(&self) -> Fahrenheit
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 Fahrenheit
impl Debug for Fahrenheit
Source§impl Hash for Fahrenheit
impl Hash for Fahrenheit
Source§impl Ord for Fahrenheit
impl Ord for Fahrenheit
Source§fn cmp(&self, other: &Fahrenheit) -> Ordering
fn cmp(&self, other: &Fahrenheit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Fahrenheit
impl PartialEq for Fahrenheit
Source§impl PartialOrd for Fahrenheit
impl PartialOrd for Fahrenheit
impl Copy for Fahrenheit
impl Eq for Fahrenheit
impl StructuralPartialEq for Fahrenheit
Auto Trait Implementations§
impl Freeze for Fahrenheit
impl RefUnwindSafe for Fahrenheit
impl Send for Fahrenheit
impl Sync for Fahrenheit
impl Unpin for Fahrenheit
impl UnwindSafe for Fahrenheit
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