pub enum OSCondition {
Windows,
Linux,
MacOS,
Unix,
Other,
}Expand description
Value for the OS condition
Variants§
Windows
Windows
Linux
Linux
MacOS
MacOS
Unix
Unix-like operating system
Other
Any other operating system
Implementations§
Source§impl OSCondition
impl OSCondition
Sourcepub fn parse_from_str(string: &str) -> Option<Self>
pub fn parse_from_str(string: &str) -> Option<Self>
Parse a string into an OSCondition
Trait Implementations§
Source§impl Clone for OSCondition
impl Clone for OSCondition
Source§fn clone(&self) -> OSCondition
fn clone(&self) -> OSCondition
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 OSCondition
impl Debug for OSCondition
Source§impl<'de> Deserialize<'de> for OSCondition
impl<'de> Deserialize<'de> for OSCondition
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 OSCondition
impl PartialEq for OSCondition
Source§impl Serialize for OSCondition
impl Serialize for OSCondition
impl Eq for OSCondition
impl StructuralPartialEq for OSCondition
Auto Trait Implementations§
impl Freeze for OSCondition
impl RefUnwindSafe for OSCondition
impl Send for OSCondition
impl Sync for OSCondition
impl Unpin for OSCondition
impl UnwindSafe for OSCondition
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