#[non_exhaustive]pub struct OsVersion {
pub major: u32,
pub minor: u32,
pub patch: Option<u32>,
pub build: Option<u32>,
}Expand description
Numeric OS version; absent components were not reported by the OS.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.major: u32Major version.
minor: u32Minor version.
patch: Option<u32>Patch version, if known.
build: Option<u32>Build number, if known.
Implementations§
Trait Implementations§
impl Eq for OsVersion
impl StructuralPartialEq for OsVersion
Auto Trait Implementations§
impl Freeze for OsVersion
impl RefUnwindSafe for OsVersion
impl Send for OsVersion
impl Sync for OsVersion
impl Unpin for OsVersion
impl UnsafeUnpin for OsVersion
impl UnwindSafe for OsVersion
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