pub enum Platform {
Mac,
Windows,
Neutral,
}Expand description
The desktop platform we present as. Neutral is the cross-platform / Linux
default: premium but without OS-specific chrome cues (no traffic lights, no
reveal highlight).
Variants§
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
A short stable label (also the serde discriminant for the override setting).
Sourcepub fn from_label(s: &str) -> Option<Platform>
pub fn from_label(s: &str) -> Option<Platform>
Parse a label back (fuzzy: case-insensitive, macos/osx ≡ mac,
win ≡ windows, anything else → None). The override-setting reader.
Sourcepub fn native_feel(self) -> NativeFeel
pub fn native_feel(self) -> NativeFeel
The default-mode NativeFeel spec for this platform.
Trait Implementations§
impl Copy for Platform
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
Blanket Implementations§
impl<T> Allocation for T
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