pub enum Os {
Ios,
Android,
MacOs,
Windows,
Linux,
Web,
}Expand description
The operating system (Platform.OS).
Variants§
Ios
iOS, iPadOS, Mac Catalyst.
Android
Android.
MacOs
macOS (a desktop backend).
Windows
Windows.
Linux
Linux.
Web
A web browser (the WebAssembly runtime): phone, tablet or desktop
by Idiom.
Implementations§
Source§impl Os
impl Os
Sourcepub fn is_desktop(self) -> bool
pub fn is_desktop(self) -> bool
The OS of a desktop backend (macOS, Windows, Linux): it has windows
and menus (nsh/desktop). Desktop behavior (desktop={{…}} props,
Platform.select({ desktop })) also covers desktop-class browsers:
Environment::desktop.
Trait Implementations§
impl Copy for Os
impl Eq for Os
impl StructuralPartialEq for Os
Auto Trait Implementations§
impl Freeze for Os
impl RefUnwindSafe for Os
impl Send for Os
impl Sync for Os
impl Unpin for Os
impl UnsafeUnpin for Os
impl UnwindSafe for Os
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.