#[repr(C)]pub struct Win32Version { /* private fields */ }
Implementations§
Source§impl Win32Version
impl Win32Version
pub fn new( nt_major_version: u32, nt_minor_version: u32, nt_build_number: u32, ) -> Self
pub fn mask_build_number(self) -> Self
pub fn major_version(&self) -> u32
pub fn minor_version(&self) -> u32
pub fn build_number(&self) -> u32
pub fn is_checked_build(&self) -> bool
pub fn as_tuple(&self) -> (u32, u32, u32)
Trait Implementations§
Source§impl Clone for Win32Version
impl Clone for Win32Version
Source§fn clone(&self) -> Win32Version
fn clone(&self) -> Win32Version
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 Win32Version
impl Debug for Win32Version
Source§impl Default for Win32Version
impl Default for Win32Version
Source§fn default() -> Win32Version
fn default() -> Win32Version
Returns the “default value” for a type. Read more
Source§impl Display for Win32Version
impl Display for Win32Version
Source§impl Ord for Win32Version
impl Ord for Win32Version
Source§fn cmp(&self, other: &Win32Version) -> Ordering
fn cmp(&self, other: &Win32Version) -> 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 Win32Version
impl PartialEq for Win32Version
Source§impl PartialOrd for Win32Version
impl PartialOrd for Win32Version
impl Copy for Win32Version
impl Eq for Win32Version
Auto Trait Implementations§
impl Freeze for Win32Version
impl RefUnwindSafe for Win32Version
impl Send for Win32Version
impl Sync for Win32Version
impl Unpin for Win32Version
impl UnwindSafe for Win32Version
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more