pub struct Tool { /* private fields */ }
Expand description
Tool
found by find-msvc-tools
Implementations§
Source§impl Tool
impl Tool
Sourcepub fn to_command(&self) -> Command
pub fn to_command(&self) -> Command
Converts this compiler into a Command
that’s ready to be run.
This is useful for when the compiler needs to be executed and the command returned will already have the initial arguments and environment variables configured.
Sourcepub fn is_clang_cl(&self) -> bool
pub fn is_clang_cl(&self) -> bool
Check is the tool clang-cl related
Sourcepub fn env(&self) -> impl IntoIterator<Item = &(OsString, OsString)>
pub fn env(&self) -> impl IntoIterator<Item = &(OsString, OsString)>
Get environment variables for the tools
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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