Struct tugger_apple::AppleSdk
source · [−]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,
}
Expand description
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
sourceimpl AppleSdk
impl AppleSdk
sourcepub fn from_directory(path: &Path) -> Result<Self>
pub fn from_directory(path: &Path) -> Result<Self>
Attempt to resolve an SDK from a path to the SDK root directory.
sourcepub fn version_as_semver(&self) -> Result<Version>
pub fn version_as_semver(&self) -> Result<Version>
Convert the version string to a semver::Version
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AppleSdk
impl Send for AppleSdk
impl Sync for AppleSdk
impl Unpin for AppleSdk
impl UnwindSafe for AppleSdk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more