#[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 fn from_system_desktop_env(de: &DesktopEnvironment) -> Self
pub 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 moreSource§impl Debug for LinuxDesktopEnv
impl Debug for LinuxDesktopEnv
Source§impl Hash for LinuxDesktopEnv
impl Hash for LinuxDesktopEnv
Source§impl PartialEq for LinuxDesktopEnv
impl PartialEq for LinuxDesktopEnv
Source§fn eq(&self, other: &LinuxDesktopEnv) -> bool
fn eq(&self, other: &LinuxDesktopEnv) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LinuxDesktopEnv
impl Eq 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