#[non_exhaustive]pub struct CMakeVersion {
pub major: i32,
pub minor: i32,
pub patch: i32,
pub suffix: String,
pub string: String,
pub is_dirty: bool,
}
Expand description
information about the instance of CMake
that generated the reply
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: i32
specifying the major version component
minor: i32
specifying the minor version component
patch: i32
specifying the patch version component
suffix: String
specifying the version suffix, if any, e.g. g0abc3
string: String
specifying the full version in the format <major>.<minor>.<patch>[-<suffix>]
is_dirty: bool
indicating whether the version was built from a version controlled source tree with local modifications
Trait Implementations§
Source§impl Clone for CMakeVersion
impl Clone for CMakeVersion
Source§fn clone(&self) -> CMakeVersion
fn clone(&self) -> CMakeVersion
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 CMakeVersion
impl Debug for CMakeVersion
Source§impl Default for CMakeVersion
impl Default for CMakeVersion
Source§fn default() -> CMakeVersion
fn default() -> CMakeVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CMakeVersion
impl<'de> Deserialize<'de> for CMakeVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CMakeVersion
impl PartialEq for CMakeVersion
Source§impl Serialize for CMakeVersion
impl Serialize for CMakeVersion
impl StructuralPartialEq for CMakeVersion
Auto Trait Implementations§
impl Freeze for CMakeVersion
impl RefUnwindSafe for CMakeVersion
impl Send for CMakeVersion
impl Sync for CMakeVersion
impl Unpin for CMakeVersion
impl UnwindSafe for CMakeVersion
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