pub enum PlatformKind {
Web,
Android,
Ios,
IpadOs,
MacOs,
Windows,
Linux,
Headless,
}Expand description
All supported execution targets across Web, Mobile, Tablet, Desktop, and Headless.
Variants§
Web
Browser WebAssembly platform using HTML5 Canvas / WebGL2 / WebGPU.
Android
Android native platform using Android NDK (ANativeWindow / AInput / Vulkan / GLES).
Ios
iOS phone native platform using UIKit / CoreGraphics / Metal.
IpadOs
iPadOS tablet native platform using UIKit / Stage Manager / Apple Pencil / Metal.
MacOs
macOS desktop native platform using Cocoa AppKit / CoreGraphics / Metal.
Windows
Windows desktop native platform using Win32 / GDI32 / DWM / Direct3D.
Linux
Linux desktop native platform using X11 / Wayland / Vulkan.
Headless
Deterministic offscreen headless platform for automated parity tests and benchmarks.
Implementations§
Source§impl PlatformKind
Metadata queries for PlatformKind.
impl PlatformKind
Metadata queries for PlatformKind.
Sourcepub const fn form_factor(&self) -> DeviceFormFactor
pub const fn form_factor(&self) -> DeviceFormFactor
Sourcepub const fn is_mobile_or_tablet(&self) -> bool
pub const fn is_mobile_or_tablet(&self) -> bool
Sourcepub const fn all_targets() -> [Self; 7]
pub const fn all_targets() -> [Self; 7]
Returns the list of all 7 production platforms supported by euv.
§Returns
[Self; 7]- Array containing Web, Android, iOS, iPadOS, macOS, Windows, and Linux.