pub struct NSOperatingSystemVersion {
pub major: isize,
pub minor: isize,
pub patch_version: isize,
}Expand description
A structure that contains version information about the currently executing operating system, including major, minor, and patch version numbers.
Fields§
§major: isizeThe major release number, such as 10 in version 10.9.3.
minor: isizeThe minor release number, such as 9 in version 10.9.3.
patch_version: isizeThe update release number, such as 3 in version 10.9.3.
Trait Implementations§
Source§impl Clone for NSOperatingSystemVersion
impl Clone for NSOperatingSystemVersion
Source§fn clone(&self) -> NSOperatingSystemVersion
fn clone(&self) -> NSOperatingSystemVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NSOperatingSystemVersion
impl Debug for NSOperatingSystemVersion
Source§impl Display for NSOperatingSystemVersion
impl Display for NSOperatingSystemVersion
Source§impl Ord for NSOperatingSystemVersion
impl Ord for NSOperatingSystemVersion
Source§fn cmp(&self, other: &NSOperatingSystemVersion) -> Ordering
fn cmp(&self, other: &NSOperatingSystemVersion) -> Ordering
1.21.0 · 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 PartialEq for NSOperatingSystemVersion
impl PartialEq for NSOperatingSystemVersion
Source§impl PartialOrd for NSOperatingSystemVersion
impl PartialOrd for NSOperatingSystemVersion
impl Copy for NSOperatingSystemVersion
impl Eq for NSOperatingSystemVersion
impl StructuralPartialEq for NSOperatingSystemVersion
Auto Trait Implementations§
impl Freeze for NSOperatingSystemVersion
impl RefUnwindSafe for NSOperatingSystemVersion
impl Send for NSOperatingSystemVersion
impl Sync for NSOperatingSystemVersion
impl Unpin for NSOperatingSystemVersion
impl UnwindSafe for NSOperatingSystemVersion
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