pub struct TemperatureRating { /* private fields */ }Expand description
A temperature rating in degrees Celsius.
Implementations§
Source§impl TemperatureRating
impl TemperatureRating
Sourcepub fn new_celsius(value: f64) -> Result<Self, RatingError>
pub fn new_celsius(value: f64) -> Result<Self, RatingError>
Creates a temperature rating in degrees Celsius.
§Errors
Returns RatingError::NonFinite when the value is not finite.
Trait Implementations§
Source§impl Clone for TemperatureRating
impl Clone for TemperatureRating
Source§fn clone(&self) -> TemperatureRating
fn clone(&self) -> TemperatureRating
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TemperatureRating
impl Debug for TemperatureRating
Source§impl Display for TemperatureRating
impl Display for TemperatureRating
Source§impl PartialEq for TemperatureRating
impl PartialEq for TemperatureRating
Source§fn eq(&self, other: &TemperatureRating) -> bool
fn eq(&self, other: &TemperatureRating) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TemperatureRating
impl PartialOrd for TemperatureRating
impl Copy for TemperatureRating
impl StructuralPartialEq for TemperatureRating
Auto Trait Implementations§
impl Freeze for TemperatureRating
impl RefUnwindSafe for TemperatureRating
impl Send for TemperatureRating
impl Sync for TemperatureRating
impl Unpin for TemperatureRating
impl UnsafeUnpin for TemperatureRating
impl UnwindSafe for TemperatureRating
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