Struct tugger_apple::AppleSdk[][src]

pub struct AppleSdk {
    pub path: PathBuf,
    pub is_symlink: bool,
    pub platform_name: String,
    pub name: String,
    pub default_deployment_target: String,
    pub default_variant: Option<String>,
    pub display_name: String,
    pub maximum_deployment_target: String,
    pub minimal_display_name: String,
    pub supported_targets: HashMap<String, AppleSdkSupportedTarget>,
    pub version: String,
}

Describes an Apple SDK on the filesystem.

Fields

path: PathBuf

Root directory of the SDK.

is_symlink: bool

Whether the root directory is a symlink to another path.

platform_name: String

The name of the platform

name: String

The canonical name of the SDK. e.g. macosx11.1.

default_deployment_target: String

Version of the default deployment target for this SDK.

default_variant: Option<String>

Name of default settings variant for this SDK.

display_name: String

Human friendly name of this SDK.

maximum_deployment_target: String

Maximum deployment target version this SDK supports.

minimal_display_name: String

Human friendly value for name (probably just version string).

supported_targets: HashMap<String, AppleSdkSupportedTarget>

Describes named target configurations this SDK supports.

version: String

Version of this SDK. e.g. 11.1.

Implementations

impl AppleSdk[src]

pub fn from_directory(path: &Path) -> Result<Self>[src]

Attempt to resolve an SDK from a path to the SDK root directory.

pub fn version_as_semver(&self) -> Result<Version>[src]

Convert the version string to a semver::Version.

Trait Implementations

impl Clone for AppleSdk[src]

impl Debug for AppleSdk[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.