Struct windows_version::OsVersion
source · pub struct OsVersion {
pub major: u32,
pub minor: u32,
pub pack: u32,
pub build: u32,
}
Expand description
Operating system version information.
Fields§
§major: u32
The major version number of the operating system.
minor: u32
The minor version number of the operating system.
pack: u32
The major version number of the latest service pack installed on the system.
build: u32
The build number of the operating system.
Implementations§
Trait Implementations§
source§impl Ord for OsVersion
impl Ord for OsVersion
source§impl PartialEq for OsVersion
impl PartialEq for OsVersion
source§impl PartialOrd for OsVersion
impl PartialOrd for OsVersion
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OsVersion
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 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