pub enum PlatformTarget {
Android,
Ios,
MacOs,
Windows,
Linux,
WebWasm,
WebJs,
}Expand description
Target operating system or runtime platform.
Variants§
Implementations§
Source§impl PlatformTarget
impl PlatformTarget
Sourcepub const fn current() -> Self
pub const fn current() -> Self
Detects current runtime platform target from compile-time flags.
Sourcepub const fn is_mobile(&self) -> bool
pub const fn is_mobile(&self) -> bool
Returns true if this target is a mobile operating system.
Sourcepub const fn is_desktop(&self) -> bool
pub const fn is_desktop(&self) -> bool
Returns true if this target is a desktop operating system.
Trait Implementations§
Source§impl Clone for PlatformTarget
impl Clone for PlatformTarget
impl Copy for PlatformTarget
Source§impl Debug for PlatformTarget
impl Debug for PlatformTarget
impl Eq for PlatformTarget
Source§impl Hash for PlatformTarget
impl Hash for PlatformTarget
Source§impl PartialEq for PlatformTarget
impl PartialEq for PlatformTarget
impl StructuralPartialEq for PlatformTarget
Auto Trait Implementations§
impl Forget for PlatformTarget
impl Freeze for PlatformTarget
impl Move for PlatformTarget
impl RefUnwindSafe for PlatformTarget
impl Send for PlatformTarget
impl Sync for PlatformTarget
impl Unpin for PlatformTarget
impl UnsafeUnpin for PlatformTarget
impl UnwindSafe for PlatformTarget
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§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.