Struct platform_info::WinOsVersionInfo
source · pub struct WinOsVersionInfo {
pub os_name: OsString,
pub release: OsString,
pub version: OsString,
}
Expand description
Contains WinOS version information as OsString’s; for more info, see NT Version Info (detailed).
Fields§
§os_name: OsString
“Friendly” OS name (eg, “Windows 10”)
release: OsString
General/main OS version (eg, “10.0”)
version: OsString
Specific OS version (eg, “19045”)
Trait Implementations§
source§impl Clone for WinOsVersionInfo
impl Clone for WinOsVersionInfo
source§fn clone(&self) -> WinOsVersionInfo
fn clone(&self) -> WinOsVersionInfo
Returns a copy 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 WinOsVersionInfo
impl Debug for WinOsVersionInfo
source§impl PartialEq for WinOsVersionInfo
impl PartialEq for WinOsVersionInfo
source§fn eq(&self, other: &WinOsVersionInfo) -> bool
fn eq(&self, other: &WinOsVersionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WinOsVersionInfo
impl StructuralPartialEq for WinOsVersionInfo
Auto Trait Implementations§
impl Freeze for WinOsVersionInfo
impl RefUnwindSafe for WinOsVersionInfo
impl Send for WinOsVersionInfo
impl Sync for WinOsVersionInfo
impl Unpin for WinOsVersionInfo
impl UnwindSafe for WinOsVersionInfo
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