Struct Version
pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
Represents a macOS version number (major.minor.patch).
Fields§
§major: u32§minor: u32§patch: u32Implementations§
§impl Version
impl Version
pub fn new(major: u32, minor: u32, patch: u32) -> Self
pub fn big_sur() -> Self
pub fn big_sur() -> Self
macOS Big Sur (11.0)
pub fn monterey() -> Self
pub fn monterey() -> Self
macOS Monterey (12.0)
pub fn ventura() -> Self
pub fn ventura() -> Self
macOS Ventura (13.0)
pub fn sonoma() -> Self
pub fn sonoma() -> Self
macOS Sonoma (14.0)
pub fn sequoia() -> Self
pub fn sequoia() -> Self
macOS Sequoia (15.0)
pub fn tahoe() -> Self
pub fn tahoe() -> Self
macOS Tahoe (26.0)
Trait Implementations§
§impl Ord for Version
impl Ord for Version
§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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