pub enum TargetPlatform {
Android,
Fuchsia,
IOS,
Linux,
MacOS,
Windows,
}Expand description
The platform that user interaction should adapt to target.
Flutter counterpart: TargetPlatform (foundation/platform.dart). Flutter
reads the current one from a library global that consults dart:io. Here it
is a plain value type, and the App-owned Platform reports which one it
is, so two Apps in one process can differ.
Variants§
Android
Android: https://www.android.com/
Fuchsia
IOS
Linux
Linux: https://www.linux.org
MacOS
macOS: https://www.apple.com/macos
Windows
Windows: https://www.windows.com
Trait Implementations§
Source§impl Clone for TargetPlatform
impl Clone for TargetPlatform
impl Copy for TargetPlatform
Source§impl Debug for TargetPlatform
impl Debug for TargetPlatform
impl Eq for TargetPlatform
Source§impl Hash for TargetPlatform
impl Hash for TargetPlatform
Source§impl Ord for TargetPlatform
impl Ord for TargetPlatform
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TargetPlatform
impl PartialEq for TargetPlatform
Source§impl PartialOrd for TargetPlatform
impl PartialOrd for TargetPlatform
impl StructuralPartialEq for TargetPlatform
Auto Trait Implementations§
impl Freeze for TargetPlatform
impl RefUnwindSafe for TargetPlatform
impl Send for TargetPlatform
impl Sync for TargetPlatform
impl Unpin for TargetPlatform
impl UnsafeUnpin for TargetPlatform
impl UnwindSafe for TargetPlatform
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.