Skip to main content

Prepared

Struct Prepared 

Source
pub struct Prepared {
    pub env: Env,
    pub sdk: Option<WindowsSdk>,
    pub ignored: Vec<&'static str>,
    pub gcc: Option<Install>,
}
Expand description

The environment the selected compiler runs in.

Fields§

§env: Env

The process environment with the MSVC toolset’s and the Windows SDK’s paths applied, or as given when no toolset is used.

§sdk: Option<WindowsSdk>

The Windows SDK, when a toolset is used.

§ignored: Vec<&'static str>

The TOOL_OPTION_VARIABLES that were set and are left out of env, for the build to warn about.

§gcc: Option<Install>

What GCC builds with besides its command line, when GCC is used.

Implementations§

Source§

impl Prepared

Source

pub fn include_dirs(&self) -> Vec<PathBuf>

The include directories the compiler searches for the system and standard headers: the resolved INCLUDE, in order, when the environment was prepared for an MSVC toolset; GCC’s own, as it told them, for GCC; else none, whatever the process’s own INCLUDE says. The one place an MSVC environment’s include path is read, so a compiler with no toolset never takes it as its include path (compile_commands.json, the build records, clang-tidy).

Source

pub fn identity(&self, version: &str) -> Vec<OsString>

What besides each compile’s arguments identifies its command: the compiler’s version, the variables of the environment that decide which headers and libraries it reads, and for GCC the runtime files it links into every program (build.md, “Deciding what changed”).

Trait Implementations§

Source§

impl Clone for Prepared

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Prepared

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Prepared

§

impl Freeze for Prepared

§

impl Move for Prepared

§

impl RefUnwindSafe for Prepared

§

impl Send for Prepared
where NodeRef<Owned, OsString, (OsString, OsString), LeafOrInternal>: Send, BoxRaw<(OsString, (OsString, OsString))>: Send, RawVecInner: Send, &'static str: Send,

§

impl Sync for Prepared
where NodeRef<Owned, OsString, (OsString, OsString), LeafOrInternal>: Sync, BoxRaw<(OsString, (OsString, OsString))>: Sync, RawVecInner: Sync,

§

impl Unpin for Prepared
where *const LeafNode<OsString, (OsString, OsString)> is !null: Unpin, Box<(OsString, (OsString, OsString))>: Unpin, *const u8 is !null: Unpin, &'static str: Unpin,

§

impl UnsafeUnpin for Prepared

§

impl UnwindSafe for Prepared
where BTreeMap<OsString, (OsString, OsString)>: UnwindSafe, RawVecInner: UnwindSafe, &'static str: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.