pub enum Tool {
Ar,
As,
Cov,
Lld,
Nm,
Objcopy,
Objdump,
Profdata,
Readobj,
Size,
Strip,
}Variants§
Implementations§
Source§impl Tool
impl Tool
pub fn name(self) -> &'static str
pub fn exe(self) -> String
pub fn path(self) -> Result<PathBuf>
Sourcepub fn rust_exec(self) -> !
pub fn rust_exec(self) -> !
Forwards execution to the specified tool. If the tool fails to start or is not found this process exits with status code 101 the same as if the process has a panic!
Sourcepub fn cargo_exec(self, examples: Option<&str>) -> !
pub fn cargo_exec(self, examples: Option<&str>) -> !
Parses arguments for cargo $tool and then if needed executes cargo build
before parsing the required arguments to rust-$tool.
If the tool fails to start or is not found this process exits with
status code 101 the same as if the process has a panic!
pub fn needs_build(self) -> bool
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.