#[non_exhaustive]pub struct Compiler {
pub path: Option<PathBuf>,
pub id: Option<String>,
pub version: Option<String>,
pub target: Option<String>,
pub implicit: Implicit,
}
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.path: Option<PathBuf>
Optional member that is present when the CMAKE_<LANG>_COMPILER
variable is defined for the current language.
Holding the absolute path to the compiler.
id: Option<String>
Optional member that is present when the CMAKE_<LANG>_COMPILER_ID
variable is defined for the current language.
Holding the ID (GNU, MSVC, etc.) of the compiler.
version: Option<String>
Optional member that is present when the CMAKE_<LANG>_COMPILER_VERSION
variable is defined for the current language.
Holding the version of the compiler.
target: Option<String>
Optional member that is present when the CMAKE_<LANG>_COMPILER_TARGET
variable is defined for the current language.
Holding the cross-compiling target of the compiler.
implicit: Implicit
Implicit compiler info for CMAKE_<LANG>_IMPLICIT_*
variables.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Compiler
impl<'de> Deserialize<'de> for Compiler
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
impl StructuralPartialEq for Compiler
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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