pub struct CelsiusShifted(pub i32);Expand description
Nvidia encodes temperature as << 8 for some reason sometimes.
Tuple Fields§
§0: i32Implementations§
Trait Implementations§
Source§impl Clone for CelsiusShifted
impl Clone for CelsiusShifted
Source§fn clone(&self) -> CelsiusShifted
fn clone(&self) -> CelsiusShifted
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 CelsiusShifted
impl Debug for CelsiusShifted
Source§impl Default for CelsiusShifted
impl Default for CelsiusShifted
Source§fn default() -> CelsiusShifted
fn default() -> CelsiusShifted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CelsiusShifted
impl<'de> Deserialize<'de> for CelsiusShifted
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CelsiusShifted
impl Display for CelsiusShifted
Source§impl From<Celsius> for CelsiusShifted
impl From<Celsius> for CelsiusShifted
Source§impl From<CelsiusShifted> for Celsius
impl From<CelsiusShifted> for Celsius
Source§fn from(c: CelsiusShifted) -> Self
fn from(c: CelsiusShifted) -> Self
Converts to this type from the input type.
Source§impl Hash for CelsiusShifted
impl Hash for CelsiusShifted
Source§impl Ord for CelsiusShifted
impl Ord for CelsiusShifted
Source§fn cmp(&self, other: &CelsiusShifted) -> Ordering
fn cmp(&self, other: &CelsiusShifted) -> 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 CelsiusShifted
impl PartialEq for CelsiusShifted
Source§impl PartialOrd for CelsiusShifted
impl PartialOrd for CelsiusShifted
Source§impl Serialize for CelsiusShifted
impl Serialize for CelsiusShifted
impl Copy for CelsiusShifted
impl Eq for CelsiusShifted
impl StructuralPartialEq for CelsiusShifted
Auto Trait Implementations§
impl Freeze for CelsiusShifted
impl RefUnwindSafe for CelsiusShifted
impl Send for CelsiusShifted
impl Sync for CelsiusShifted
impl Unpin for CelsiusShifted
impl UnwindSafe for CelsiusShifted
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