pub enum OS {
Mac,
Linux,
Windows,
Android,
IPhone,
IPad,
Unknown,
}Expand description
Describes known operating systems / targets.
Variants§
Mac
macOS.
Linux
Linux desktop.
Windows
Windows desktop.
Android
Android.
IPhone
iOS on iPhone-class devices.
IPad
iPadOS / iOS on iPad-class devices.
Unknown
OS has not been detected or reported.
Implementations§
Source§impl OS
impl OS
Sourcepub fn is_desktop(&self) -> bool
pub fn is_desktop(&self) -> bool
Helper to determine if the OS is a desktop platform.
Sourcepub fn is_android(&self) -> bool
pub fn is_android(&self) -> bool
Returns true for Android.
Sourcepub fn is_windows(&self) -> bool
pub fn is_windows(&self) -> bool
Returns true for Windows.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.