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§
Sourcefn sdk_name(&self) -> &'static str
fn sdk_name(&self) -> &'static str
Get the SDK name for xcodebuild (e.g., “macosx”, “iphoneos”, “iphonesimulator”).
Sourcefn is_simulator(&self) -> bool
fn is_simulator(&self) -> bool
Check if this platform is a simulator.
Sourcefn arch(&self) -> Architecture
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.