pub struct Runtime {
pub platform: Platform,
pub version: SemanticVersion,
pub identifier: String,
}Fields§
§platform: Platform§version: SemanticVersion§identifier: StringImplementations§
Source§impl Runtime
impl Runtime
pub fn new( platform: Platform, version: SemanticVersion, identifier: impl Into<String>, ) -> Self
pub fn from_identifier(identifier: &str) -> Option<Self>
Sourcepub fn from_identifier_with_version(
identifier: &str,
version_string: Option<&str>,
) -> Option<Self>
pub fn from_identifier_with_version( identifier: &str, version_string: Option<&str>, ) -> Option<Self>
Apple sometimes ships point releases under the same identifier
(e.g. iOS-26-4 hosts both 26.4 and 26.4.1). Prefer the explicit
version string from simctl list --json runtimes when available.
pub fn display_name(&self) -> String
Trait Implementations§
impl Eq for Runtime
Source§impl Ord for Runtime
impl Ord for Runtime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Runtime
impl PartialOrd for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more