[][src]Enum cargo_binutils::Tool

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

impl Tool[src]

pub fn name(self) -> &'static str[src]

pub fn exe(self) -> String[src]

pub fn path(self) -> Result<PathBuf>[src]

pub fn rust_exec(self) -> ![src]

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!

pub fn cargo_exec(self, examples: Option<&str>) -> ![src]

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[src]

Trait Implementations

impl Clone for Tool[src]

impl Copy for Tool[src]

impl PartialEq<Tool> for Tool[src]

impl StructuralPartialEq for Tool[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.