ApplePlatformExt

Trait ApplePlatformExt 

Source
pub trait ApplePlatformExt: Platform {
    // Required methods
    fn sdk_name(&self) -> &'static str;
    fn is_simulator(&self) -> bool;
    fn arch(&self) -> Architecture;
}
Expand description

Trait for Apple-specific platform functionality.

This trait provides Apple-specific methods that are shared across all Apple platforms. Each platform type (MacOS, Ios, IosSimulator, etc.) implements this trait.

Required Methods§

Source

fn sdk_name(&self) -> &'static str

Get the SDK name for xcodebuild (e.g., “macosx”, “iphoneos”, “iphonesimulator”).

Source

fn is_simulator(&self) -> bool

Check if this platform is a simulator.

Source

fn arch(&self) -> Architecture

Get the architecture for this platform.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§