Enum cargo_binutils::Tool
source · [−]pub enum Tool {
Ar,
Cov,
Lld,
Nm,
Objcopy,
Objdump,
Profdata,
Readobj,
Size,
Strip,
}
Variants
Ar
Cov
Lld
Nm
Objcopy
Objdump
Profdata
Readobj
Size
Strip
Implementations
sourceimpl 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 StructuralPartialEq for Tool
Auto Trait Implementations
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more