pub struct MscVersion {
pub major: u32,
pub minor: u32,
pub build: u32,
}Expand description
The MSVC release an MSVC row claims, which is _MSC_VER and _MSC_FULL_VER.
19.40 is Visual Studio 2022 17.10, which is the release the design names and the one whose
SDK headers this was written against. The build number is zero unless one is given, which
makes _MSC_FULL_VER 194000000, and that is what clang says for -fms-compatibility-version=19.40.
Fields§
§major: u32The compiler’s major version, 19 for every release since Visual Studio 2015.
minor: u32The minor version, which is what moves from one Visual Studio update to the next.
build: u32The build number, which only _MSC_FULL_VER says.
Implementations§
Source§impl MscVersion
impl MscVersion
Trait Implementations§
Source§impl Clone for MscVersion
impl Clone for MscVersion
impl Copy for MscVersion
Source§impl Debug for MscVersion
impl Debug for MscVersion
Source§impl Default for MscVersion
impl Default for MscVersion
Source§fn default() -> MscVersion
fn default() -> MscVersion
Returns the “default value” for a type. Read more
impl Eq for MscVersion
Source§impl FromStr for MscVersion
impl FromStr for MscVersion
Source§impl Hash for MscVersion
impl Hash for MscVersion
Source§impl Ord for MscVersion
impl Ord for MscVersion
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MscVersion
impl PartialEq for MscVersion
Source§impl PartialOrd for MscVersion
impl PartialOrd for MscVersion
impl StructuralPartialEq for MscVersion
Auto Trait Implementations§
impl Freeze for MscVersion
impl RefUnwindSafe for MscVersion
impl Send for MscVersion
impl Sync for MscVersion
impl Unpin for MscVersion
impl UnsafeUnpin for MscVersion
impl UnwindSafe for MscVersion
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