[−][src]Enum cargo_rustc_cfg::CargoTarget
The various types of Cargo targets.
The default variant is Library
.
This should not be confused with Rust compiler (rustc) targets, which are typically represented by a "triple" string. Cargo targets are defined and listed in a package's manifest (Cargo.toml).
Variants
Benchmark(OsString)
A --bench <NAME>
Cargo target as defined in the package's manifest
(Cargo.toml).
Binary(OsString)
A --bin <NAME>
Cargo target as defined in the package's manifest
(Cargo.toml).
Example(OsString)
An --example <NAME>
Cargo target as defined in the package's manifest
(Cargo.toml).
The default Cargo target.
Test(OsString)
A --test <NAME>
Cargo target as defined in the package's manifest
(Cargo.toml).
Implementations
impl CargoTarget
[src]
pub fn to_args(&self) -> Vec<&OsStr>
[src]
Converts the Cargo target into the command line arguments for Cargo.
pub fn into_args(self) -> Vec<OsString>
[src]
Consumes the Cargo target to convert into the command line arguments for Cargo.
Trait Implementations
impl Clone for CargoTarget
[src]
pub fn clone(&self) -> CargoTarget
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CargoTarget
[src]
impl Default for CargoTarget
[src]
impl PartialEq<CargoTarget> for CargoTarget
[src]
pub fn eq(&self, other: &CargoTarget) -> bool
[src]
pub fn ne(&self, other: &CargoTarget) -> bool
[src]
impl StructuralPartialEq for CargoTarget
[src]
Auto Trait Implementations
impl RefUnwindSafe for CargoTarget
impl Send for CargoTarget
impl Sync for CargoTarget
impl Unpin for CargoTarget
impl UnwindSafe for CargoTarget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,