#[repr(i32)]pub enum CoolerType {
None = 0,
Fan = 1,
Water = 2,
LiquidNO2 = 3,
}Variants§
Implementations§
Source§impl CoolerType
impl CoolerType
pub fn from_raw(raw: i32) -> Result<CoolerType, ArgumentRangeError>
pub fn raw(&self) -> i32
pub fn values() -> Cloned<Iter<'static, CoolerType>>
Trait Implementations§
Source§impl Clone for CoolerType
impl Clone for CoolerType
Source§fn clone(&self) -> CoolerType
fn clone(&self) -> CoolerType
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 CoolerType
impl Debug for CoolerType
Source§impl<'de> Deserialize<'de> for CoolerType
impl<'de> Deserialize<'de> for CoolerType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoolerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoolerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CoolerType
impl Display for CoolerType
Source§impl Hash for CoolerType
impl Hash for CoolerType
Source§impl Into<i32> for CoolerType
impl Into<i32> for CoolerType
Source§impl Ord for CoolerType
impl Ord for CoolerType
Source§fn cmp(&self, other: &CoolerType) -> Ordering
fn cmp(&self, other: &CoolerType) -> 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 CoolerType
impl PartialEq for CoolerType
Source§impl PartialOrd for CoolerType
impl PartialOrd for CoolerType
Source§impl Serialize for CoolerType
impl Serialize for CoolerType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CoolerType
impl Eq for CoolerType
impl StructuralPartialEq for CoolerType
Auto Trait Implementations§
impl Freeze for CoolerType
impl RefUnwindSafe for CoolerType
impl Send for CoolerType
impl Sync for CoolerType
impl Unpin for CoolerType
impl UnwindSafe for CoolerType
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