Enum i3status_rs::blocks::temperature::TemperatureScale
source · pub enum TemperatureScale {
Celsius,
Fahrenheit,
}
Variants§
Implementations§
source§impl TemperatureScale
impl TemperatureScale
pub fn from_celsius(self, val: f64) -> f64
Trait Implementations§
source§impl Clone for TemperatureScale
impl Clone for TemperatureScale
source§fn clone(&self) -> TemperatureScale
fn clone(&self) -> TemperatureScale
Returns a copy 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 TemperatureScale
impl Debug for TemperatureScale
source§impl<'de> Deserialize<'de> for TemperatureScale
impl<'de> Deserialize<'de> for TemperatureScale
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 PartialEq for TemperatureScale
impl PartialEq for TemperatureScale
source§fn eq(&self, other: &TemperatureScale) -> bool
fn eq(&self, other: &TemperatureScale) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TemperatureScale
impl Eq for TemperatureScale
impl StructuralPartialEq for TemperatureScale
Auto Trait Implementations§
impl Freeze for TemperatureScale
impl RefUnwindSafe for TemperatureScale
impl Send for TemperatureScale
impl Sync for TemperatureScale
impl Unpin for TemperatureScale
impl UnwindSafe for TemperatureScale
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.