#[repr(C)]pub enum LinuxDesktopEnv {
Gnome = 0,
KDE = 1,
XFCE = 2,
Unity = 3,
Cinnamon = 4,
MATE = 5,
Other = 6,
}Expand description
Linux desktop environment for @os(linux:<de>) CSS selectors.
Note: from_system_desktop_env currently only maps Gnome, KDE, and Other.
XFCE, Unity, Cinnamon, and MATE can be matched via CSS parsing (@os(linux:xfce))
but will not be auto-detected from the system — they map to Other at runtime.
Variants§
Gnome = 0
KDE = 1
XFCE = 2
CSS-parse-only: not auto-detected from system (maps to Other at runtime)
Unity = 3
CSS-parse-only: not auto-detected from system (maps to Other at runtime)
Cinnamon = 4
CSS-parse-only: not auto-detected from system (maps to Other at runtime)
MATE = 5
CSS-parse-only: not auto-detected from system (maps to Other at runtime)
Other = 6
Implementations§
Source§impl LinuxDesktopEnv
impl LinuxDesktopEnv
Sourcepub const fn from_system_desktop_env(de: &DesktopEnvironment) -> Self
pub const fn from_system_desktop_env(de: &DesktopEnvironment) -> Self
Convert from css::system::DesktopEnvironment
Trait Implementations§
Source§impl Clone for LinuxDesktopEnv
impl Clone for LinuxDesktopEnv
Source§fn clone(&self) -> LinuxDesktopEnv
fn clone(&self) -> LinuxDesktopEnv
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 LinuxDesktopEnv
Source§impl Debug for LinuxDesktopEnv
impl Debug for LinuxDesktopEnv
impl Eq for LinuxDesktopEnv
Source§impl Hash for LinuxDesktopEnv
impl Hash for LinuxDesktopEnv
Source§impl Ord for LinuxDesktopEnv
impl Ord for LinuxDesktopEnv
Source§fn cmp(&self, other: &LinuxDesktopEnv) -> Ordering
fn cmp(&self, other: &LinuxDesktopEnv) -> 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 LinuxDesktopEnv
impl PartialEq for LinuxDesktopEnv
Source§impl PartialOrd for LinuxDesktopEnv
impl PartialOrd for LinuxDesktopEnv
impl StructuralPartialEq for LinuxDesktopEnv
Auto Trait Implementations§
impl Freeze for LinuxDesktopEnv
impl RefUnwindSafe for LinuxDesktopEnv
impl Send for LinuxDesktopEnv
impl Sync for LinuxDesktopEnv
impl Unpin for LinuxDesktopEnv
impl UnsafeUnpin for LinuxDesktopEnv
impl UnwindSafe for LinuxDesktopEnv
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