#[repr(C)]pub enum OsCondition {
Any = 0,
Apple = 1,
MacOS = 2,
IOS = 3,
Linux = 4,
Windows = 5,
Android = 6,
Web = 7,
}Expand description
Operating system condition for @os CSS selectors
Variants§
Implementations§
Source§impl OsCondition
impl OsCondition
Sourcepub const fn from_system_platform(platform: &Platform) -> Self
pub const fn from_system_platform(platform: &Platform) -> Self
Convert from css::system::Platform
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OsCondition
Source§impl Debug for OsCondition
impl Debug for OsCondition
impl Eq for OsCondition
Source§impl Hash for OsCondition
impl Hash for OsCondition
Source§impl Ord for OsCondition
impl Ord for OsCondition
Source§fn cmp(&self, other: &OsCondition) -> Ordering
fn cmp(&self, other: &OsCondition) -> Ordering
1.21.0 (const: unstable) · 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 OsCondition
impl PartialEq for OsCondition
Source§impl PartialOrd for OsCondition
impl PartialOrd 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 UnsafeUnpin 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