Struct Tool

pub struct Tool { /* private fields */ }

Tool found by find-msvc-tools

Implementations

impl Tool

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.

fn is_clang_cl(&self) -> bool

Check is the tool clang-cl related

fn path(&self) -> &Path

Get path to the tool

fn env(&self) -> impl IntoIterator<Item = &(OsString, OsString)>

Get environment variables for the tools

Trait Implementations

impl Clone for Tool

fn clone(&self) -> Self

impl Debug for Tool

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

Auto Trait Implementations

impl Freeze for Tool

impl RefUnwindSafe for Tool

impl Send for Tool

impl Sync for Tool

impl Unpin for Tool

impl UnsafeUnpin for Tool

impl UnwindSafe for Tool

Blanket Implementations

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

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

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

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

impl<T> From<T> for Tool

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

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

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

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